Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MyParcelNL\Sdk\src\Exception\ApiException: "0 - data.shipments[5].pickup.retail_network_id NULL value found, but a string is required #795

Open
gerben86 opened this issue Nov 27, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@gerben86
Copy link
Contributor

Plugin version

4.11.0

Magento version

2.4.5p1

PHP version

8.1

What went wrong?

An error in the AdminHTML when we're doing a mass action to print labels for 10 orders at once.

Reproduction steps

  1. Navigate to the admin panel
  2. Select orders to print a label
  3. The error comes in the screen and labels aren't exported to PDF

Relevant log output

[2023-11-24T14:34:29.269597+00:00] main.CRITICAL: MyParcelNL\Sdk\src\Exception\ApiException: "0 - data.shipments[5].pickup.retail_network_id NULL value found, but a string is required - Unknown error: {\"code\":0,\"fields\":[\"data.shipments[5].pickup.retail_network_id\"],\"human\":[\"data.shipments[5].pickup.retail_network_id NULL value found, but a string is required\"]}. Please contact MyParcel." in /vendor/myparcelnl/sdk/src/Model/MyParcelRequest.php:397
Stack trace:
#0 /vendor/myparcelnl/sdk/src/Model/MyParcelRequest.php(209): MyParcelNL\Sdk\src\Model\MyParcelRequest->handleErrors()
#1 /vendor/myparcelnl/sdk/src/Helper/MyParcelCollection.php(281): MyParcelNL\Sdk\src\Model\MyParcelRequest->sendRequest()
#2 /vendor/myparcelnl/sdk/src/Helper/MyParcelCollection.php(456): MyParcelNL\Sdk\src\Helper\MyParcelCollection->createConcepts()
#3 /vendor/myparcelnl/magento/Model/Sales/MagentoOrderCollection.php(464): MyParcelNL\Sdk\src\Helper\MyParcelCollection->setPdfOfLabels()
#4 /vendor/myparcelnl/magento/Controller/Adminhtml/Order/CreateAndPrintMyParcelTrack.php(150): MyParcelNL\Magento\Model\Sales\MagentoOrderCollection->setPdfOfLabels()
#5 /vendor/myparcelnl/magento/Controller/Adminhtml/Order/CreateAndPrintMyParcelTrack.php(76): MyParcelNL\Magento\Controller\Adminhtml\Order\CreateAndPrintMyParcelTrack->massAction()
#6 /vendor/magento/framework/Interception/Interceptor.php(58): MyParcelNL\Magento\Controller\Adminhtml\Order\CreateAndPrintMyParcelTrack->execute()
#7 /vendor/magento/framework/Interception/Interceptor.php(138): MyParcelNL\Magento\Controller\Adminhtml\Order\CreateAndPrintMyParcelTrack\Interceptor->___callParent()
#8 /vendor/magento/framework/Interception/Interceptor.php(153): MyParcelNL\Magento\Controller\Adminhtml\Order\CreateAndPrintMyParcelTrack\Interceptor->Magento\Framework\Interception\{closure}()
#9 /generated/code/MyParcelNL/Magento/Controller/Adminhtml/Order/CreateAndPrintMyParcelTrack/Interceptor.php(23): MyParcelNL\Magento\Controller\Adminhtml\Order\CreateAndPrintMyParcelTrack\Interceptor->___callPlugins()
#10 /vendor/magento/framework/App/Action/Action.php(111): MyParcelNL\Magento\Controller\Adminhtml\Order\CreateAndPrintMyParcelTrack\Interceptor->execute()
#11 /vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Action\Action->dispatch()
#12 /vendor/magento/framework/Interception/Interceptor.php(138): MyParcelNL\Magento\Controller\Adminhtml\Order\CreateAndPrintMyParcelTrack\Interceptor->___callParent()
#13 /vendor/magento/framework/Interception/Interceptor.php(153): MyParcelNL\Magento\Controller\Adminhtml\Order\CreateAndPrintMyParcelTrack\Interceptor->Magento\Framework\Interception\{closure}()
#14 /generated/code/MyParcelNL/Magento/Controller/Adminhtml/Order/CreateAndPrintMyParcelTrack/Interceptor.php(32): MyParcelNL\Magento\Controller\Adminhtml\Order\CreateAndPrintMyParcelTrack\Interceptor->___callPlugins()
#15 /vendor/magento/framework/App/FrontController.php(245): MyParcelNL\Magento\Controller\Adminhtml\Order\CreateAndPrintMyParcelTrack\Interceptor->dispatch()
#16 /vendor/magento/framework/App/FrontController.php(212): Magento\Framework\App\FrontController->getActionResponse()
#17 /vendor/magento/framework/App/FrontController.php(147): Magento\Framework\App\FrontController->processRequest()
#18 /vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch()
#19 /vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent()
#20 /vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}()
#21 /generated/code/Magento/Framework/App/FrontController/Interceptor.php(23): Magento\Framework\App\FrontController\Interceptor->___callPlugins()
#22 /vendor/magento/framework/App/Http.php(116): Magento\Framework\App\FrontController\Interceptor->dispatch()
#23 /vendor/magento/framework/App/Bootstrap.php(264): Magento\Framework\App\Http->launch()
#24 /pub/index.php(65): Magento\Framework\App\Bootstrap->run()
#25 {main} [] []

Additional context

No response

@gerben86 gerben86 added the bug Something isn't working label Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant