BatchInterfaceNotImplementedException erscheint alle paar Sekunden - solved

Hallo zusammen,

seitdem ich Shopware 5.2.26 installiert habe, bekomme ich alle paar Sekunden folgende Error-Mail zugeschickt… kann mir da eventuell jemand weiterhelfen? Ich werde aus dem Quellcode nicht recht schlau, wo der Fehler sein könnte… super vielen Dank für eure Hilfe!
 

Viele Grüße,

Tobias

 

ERROR

Message:

 exception 'Shopware\Components\Api\Exception\BatchInterfaceNotImplementedException' with message 'BatchInterface is not implemented by this resource' in /var/www/space1/web32/shopware5/engine/Shopware/Components/Api/Resource/Resource.php:302

 Stack trace:

 #0 /var/www/space1/web32/shopware5/engine/Shopware/Controllers/Api/Rest.php(76): Shopware\Components\Api\Resource\Resource-\>batch(Array)

 #1 /var/www/space1/web32/shopware5/engine/Library/Enlight/Controller/Action.php(159): Shopware\_Controllers\_Api\_Rest-\>batchAction()

 #2 /var/www/space1/web32/shopware5/engine/Library/Enlight/Controller/Dispatcher/Default.php(523): Enlight\_Controller\_Action-\>dispatch('batchAction')

 #3 /var/www/space1/web32/shopware5/engine/Library/Enlight/Controller/Front.php(223): Enlight\_Controller\_Dispatcher\_Default-\>dispatch(Object(Enlight\_Controller\_Request\_RequestHttp), Object(Enlight\_Controller\_Response\_ResponseHttp))

 #4 /var/www/space1/web32/shopware5/engine/Shopware/Kernel.php(182): Enlight\_Controller\_Front-\>dispatch()

 #5 /var/www/space1/web32/shopware5/vendor/symfony/http-kernel/HttpCache/HttpCache.php(491): Shopware\Kernel-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)

 #6 /var/www/space1/web32/shopware5/engine/Shopware/Components/HttpCache/AppCache.php(266): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL)

 #7 /var/www/space1/web32/shopware5/vendor/symfony/http-kernel/HttpCache/HttpCache.php(258): Shopware\Components\HttpCache\AppCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true)

 #8 /var/www/space1/web32/shopware5/vendor/symfony/http-kernel/HttpCache/HttpCache.php(275): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>pass(Object(Symfony\Component\HttpFoundation\Request), true)

 #9 /var/www/space1/web32/shopware5/engine/Shopware/Components/HttpCache/AppCache.php(141): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>invalidate(Object(Symfony\Component\HttpFoundation\Request), true)

 #10 /var/www/space1/web32/shopware5/vendor/symfony/http-kernel/HttpCache/HttpCache.php(206): Shopware\Components\HttpCache\AppCache-\>invalidate(Object(Symfony\Component\HttpFoundation\Request), true)

 #11 /var/www/space1/web32/shopware5/engine/Shopware/Components/HttpCache/AppCache.php(114): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)

 #12 /var/www/space1/web32/shopware5/shopware.php(117): Shopware\Components\HttpCache\AppCache-\>handle(Object(Symfony\Component\HttpFoundation\Request))

 #13 {main}

Time:

 2017-06-29T17:46:01.521979+0200

Channel:

 core

request:

 {

     "uri": "/api/orders/?useNumberAsId=true?",

     "method": "PUT",

     "query": {

         "useNumberAsId": "true?",

         "module": "api",

         "controller": "orders",

         "action": "index"

     },

     "post": {

         "orderStatusId": 2

     }

 }

shop:

 No shop data available

session:

 No session data available

Im Titel steht ja bereits „solved“ - aber nur für andere mit dem Problem: Hier wurde gegen die Order-API ein Put-Request auf die Index-Route gemacht, ohne ID - für Shopware das Signal, dass hier mehrere Bestellungen im Batch-Modus verarbeitet werden sollen. Die Bestell-API unterstützt aber den Batchmodus nicht - daher der Fehler. 

Vermutlich wurde hier nur vergessen, die Bestellnummer / ID in der URL mit zu übergeben, dann wäre das als Normale Aktualisierung durchgelaufen.

Besten Gruß,

Daniel