# OutOfMemoryError beim POST zu /store-api/checkout/cart/line-item

**URL:** https://forum.shopware.com/t/outofmemoryerror-beim-post-zu-store-api-checkout-cart-line-item/93251
**Category:** Allgemein
**Created:** [4. März 2022 um 08:53 UTC](https://forum.shopware.com/t/outofmemoryerror-beim-post-zu-store-api-checkout-cart-line-item/93251 "2022-03-04T08:53:20Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![shopwaredev\_lukas](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@shopwaredev\_lukas](https://forum.shopware.com/u/shopwaredev_lukas)
#### Post date: [4. März 2022 um 08:53 UTC](https://forum.shopware.com/t/outofmemoryerror-beim-post-zu-store-api-checkout-cart-line-item/93251/1 "2022-03-04T08:53:20Z")

</div>

Hallo,  
ich habe eine App gebaut die Produkt Bundles konfiguriert, als letzte Action sollen die Produkte in den Warenkorb hinzugefügt werden. Ich mache einen API Call zu /store-api/context und setze den Token dann als sw-context-key um einen weitere Call zu /store-api/checkout/cart/line-item zu machen mit dem Body:

```auto
{
    "items": [
        {
            "id":"5a48801fa3164919b44bfc95bc5cf6831",
            "referenceId":"5a48801fa3164919b44bfc95bc5cf6831",
            "quantity":2,
            "type":"product"
        },
        {
            "id":"ed6149fc89834a7ebadde07c18509a4a1",
            "referenceId":"ed6149fc89834a7ebadde07c18509a4a1",
            "quantity":1,
            "type":"product"
        }
    ]
}

```

Leider kommt als Response vom Server immer nur ein Internsal Server Fehler mit „Error: Allowed memory size of 4294967296 bytes exhausted“  
Was mich wundert, dass das memory\_limit laut phpinfo(); auf 4096M eingestellt ist.  
Ist das ein Bug, oder wie kann ich das Problem lösen?
