magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.56k stars 9.32k forks source link

Fedex Shipping throwing error 500 instead of showing message when trying to create shipping label with unavailable products #39209

Closed ShapesGraphicStudio closed 3 weeks ago

ShapesGraphicStudio commented 1 month ago

Preconditions and environment

Steps to reproduce

  1. Navigate to backend
  2. Try to create shipping label for unavailable products

Expected result

Inventory error message should be displayed to admin user.

Actual result

Error 500 is thrown, visible only in console, showing: Exception #0 (Magento\Framework\Exception\LocalizedException): Not all of your products are available in the requested quantity.

Exception #0 (Magento\Framework\Exception\LocalizedException): Not all of your products are available in the requested quantity.
<pre>#1 Magento\InventoryShipping\Observer\SourceDeductionProcessor->execute() called at [vendor/magento/framework/Event/Invoker/InvokerDefault.php:88]
#2 Magento\Framework\Event\Invoker\InvokerDefault->_callObserverMethod() called at [vendor/magento/framework/Event/Invoker/InvokerDefault.php:74]
#3 Magento\Framework\Event\Invoker\InvokerDefault->dispatch() called at [vendor/magento/framework/Event/Manager.php:65]
#4 Magento\Framework\Event\Manager->dispatch() called at [generated/code/Magento/Framework/Event/Manager/Proxy.php:105]
#5 Magento\Framework\Event\Manager\Proxy->dispatch() called at [vendor/magento/framework/Model/AbstractModel.php:846]
#6 Magento\Framework\Model\AbstractModel->afterSave() called at [vendor/magento/framework/Model/ResourceModel/Db/VersionControl/AbstractDb.php:56]
#7 Magento\Framework\Model\ResourceModel\Db\VersionControl\AbstractDb->processAfterSaves() called at [vendor/magento/framework/Model/ResourceModel/Db/AbstractDb.php:402]
#8 Magento\Framework\Model\ResourceModel\Db\AbstractDb->save() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#9 Magento\Sales\Model\ResourceModel\Order\Shipment\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#10 Magento\Sales\Model\ResourceModel\Order\Shipment\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#11 Magento\Sales\Model\ResourceModel\Order\Shipment\Interceptor->___callPlugins() called at [generated/code/Magento/Sales/Model/ResourceModel/Order/Shipment/Interceptor.php:32]
#12 Magento\Sales\Model\ResourceModel\Order\Shipment\Interceptor->save() called at [vendor/magento/framework/Model/AbstractModel.php:663]
#13 Magento\Framework\Model\AbstractModel->save() called at [vendor/laposte/magento2-colissimo-module/Plugin/Adminhtml/Order/Shipment/Save.php:119]
#14 LaPoste\Colissimo\Plugin\Adminhtml\Order\Shipment\Save->afterExecute() called at [vendor/magento/framework/Interception/Interceptor.php:146]
#15 Magento\Shipping\Controller\Adminhtml\Order\Shipment\Save\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#16 Magento\Shipping\Controller\Adminhtml\Order\Shipment\Save\Interceptor->___callPlugins() called at [generated/code/Magento/Shipping/Controller/Adminhtml/Order/Shipment/Save/Interceptor.php:23]
#17 Magento\Shipping\Controller\Adminhtml\Order\Shipment\Save\Interceptor->execute() called at [vendor/magento/framework/App/Action/Action.php:111]
#18 Magento\Framework\App\Action\Action->dispatch() called at [vendor/magento/module-backend/App/AbstractAction.php:151]
#19 Magento\Backend\App\AbstractAction->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#20 Magento\Shipping\Controller\Adminhtml\Order\Shipment\Save\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#21 Magento\Shipping\Controller\Adminhtml\Order\Shipment\Save\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/module-backend/App/Action/Plugin/Authentication.php:145]
#22 Magento\Backend\App\Action\Plugin\Authentication->aroundDispatch() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#23 Magento\Shipping\Controller\Adminhtml\Order\Shipment\Save\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#24 Magento\Shipping\Controller\Adminhtml\Order\Shipment\Save\Interceptor->___callPlugins() called at [generated/code/Magento/Shipping/Controller/Adminhtml/Order/Shipment/Save/Interceptor.php:32]
#25 Magento\Shipping\Controller\Adminhtml\Order\Shipment\Save\Interceptor->dispatch() called at [vendor/magento/framework/App/FrontController.php:245]
#26 Magento\Framework\App\FrontController->getActionResponse() called at [vendor/magento/framework/App/FrontController.php:212]
#27 Magento\Framework\App\FrontController->processRequest() called at [vendor/magento/framework/App/FrontController.php:146]
#28 Magento\Framework\App\FrontController->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#29 Magento\Framework\App\FrontController\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#30 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#31 Magento\Framework\App\FrontController\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/App/FrontController/Interceptor.php:23]
#32 Magento\Framework\App\FrontController\Interceptor->dispatch() called at [vendor/magento/framework/App/Http.php:116]
#33 Magento\Framework\App\Http->launch() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#34 Magento\Framework\App\Http\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#35 Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/module-application-performance-monitor/Plugin/ApplicationPerformanceMonitor.php:38]
#36 Magento\ApplicationPerformanceMonitor\Plugin\ApplicationPerformanceMonitor->aroundLaunch() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#37 Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#38 Magento\Framework\App\Http\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/App/Http/Interceptor.php:23]
#39 Magento\Framework\App\Http\Interceptor->launch() called at [vendor/magento/framework/App/Bootstrap.php:264]
#40 Magento\Framework\App\Bootstrap->run() called at [pub/index.php:30]
</pre>

Additional information

No response

Release note

No response

Triage and priority

m2-assistant[bot] commented 1 month ago

Hi @ShapesGraphicStudio. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce.

m2-assistant[bot] commented 1 month ago

Hi @engcom-Bravo. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

engcom-Bravo commented 1 month ago

Hi @ShapesGraphicStudio,

Thanks for your reporting and collaboration.

We are trying to reproduce the issue in Latest 2.4-develop instance and we are not able to reproduce the issue.Kindly refer the screnshots.

Screenshot 2024-10-03 at 09 54 53

Here we are trying to add the products more than the quantity available and also we have removed the ordered product still we are getting the error Message.Could you please elaborate your scenario to proceed further.

Thanks

engcom-Bravo commented 3 weeks ago

Hi @ShapesGraphicStudio,

We have noticed that this issue has not been updated since long time.
Hence we assume that this issue is fixed now, so we are closing it. Please feel to raise a fresh ticket or reopen this ticket if you need more assistance on this.

Thanks