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

Package type does not support pickup - Please contact MyParcel #756

Open
gerben86 opened this issue Feb 14, 2023 · 0 comments
Open

Package type does not support pickup - Please contact MyParcel #756

gerben86 opened this issue Feb 14, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@gerben86
Copy link
Contributor

Plugin version

4.8.0

Magento version

2.4.5p1

PHP version

8.1

What went wrong?

An error when trying to ship an order.

Reproduction steps

  1. Create an order with pickup at parcel point
  2. Send the order as 'Brievenbuspakje', because it should be a Brievenbuspakje instead of package.
  3. The error is shown in the log

Relevant log output

[2023-02-14T15:34:20.071754+00:00] main.CRITICAL: MyParcelNL\Sdk\src\Exception\ApiException: "0 - data.shipments[0].pickup Package type does not support pickup - Unknown error: {\"fields\":[\"data.shipments[0].pickup\"],\"human\":[\"data.shipments[0].pickup Package type does not support pickup\"]}. Please contact MyParcel." in vendor/myparcelnl/sdk/src/Model/MyParcelRequest.php:396
Stack trace:
#0 vendor/myparcelnl/sdk/src/Model/MyParcelRequest.php(208): 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(457): MyParcelNL\Sdk\src\Helper\MyParcelCollection->createConcepts()
#3 vendor/myparcelnl/magento/Model/Sales/MagentoOrderCollection.php(392): 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(60): Magento\Framework\App\Bootstrap->run()
#25 {main} [] []

Additional context

If the bug with the Brievenbuspakje would be solved, this error would happen less often. But know we need to manually select the orders which should be shipped as Brievenbuspakje, although there are other shippingoptions selected.

@gerben86 gerben86 added the bug Something isn't working label Feb 14, 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