Description
Preconditions and environment
- Magento version ver. 2.4.4-p2
-PHP 7.4.33 (cli) (built: Nov 8 2022 11:40:37) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.33, Copyright (c), by Zend Technologies
-Server version: 10.5.18-MariaDB-0+deb11u1 Debian 11
Reading history-file /root/.mysql_history
Steps to reproduce
import this curl to Postman and don't forget to add your credentials
curl --location --request POST 'https://mysite/rest/default/V1/order/000000004/ship'
--header 'Authorization: Bearer TOKEN'
--header 'Content-Type: application/json'
--header 'Cookie: mage-messages=
--data-raw '{
"items": [
{
"extension_attributes": {},
"order_item_id": 4,
"qty": 1
}
],
"notify": true,
"appendComment": true,
"comment": {
"extension_attributes": {},
"comment": "string",
"is_visible_on_front": 0
},
"tracks": [
{
"extension_attributes": {},
"track_number": "1234",
"title": "string",
"carrier_code": "string"
}
],
"packages": [
{
"extension_attributes": {}
}
],
"arguments": {
"extension_attributes": {
"source_code": "string"
}
}
}'
Expected result
Response 200 or appropriate error
Access your admin panel.
Navigate to Sales > Shipments, here you will see the shipment shown in the grid.
Navigate to Sales > Orders, here you will see the status of the order is Complete.
Actual result
- I'm trying to post a new shipment but getting 500 Internal Server Error as a response
- When calling the following api https://mysite/rest/default/V1/order/000000004/ship
with json as body
{ "items": [ { "extension_attributes": {}, "order_item_id": 4, "qty": 1 } ], "notify": true, "appendComment": true, "comment": { "extension_attributes": {}, "comment": "string", "is_visible_on_front": 0 }, "tracks": [ { "extension_attributes": {}, "track_number": "1234", "title": "string", "carrier_code": "string" } ], "packages": [ { "extension_attributes": {} } ], "arguments": { "extension_attributes": { "source_code": "string" } } }
this is the response i'm getting:
{"message":"Internal Error. Details are available in Magento log file. Report ID: webapi-63e244077431e"}
Here is my debug.log
`[2023-02-07T12:28:55.476445+00:00] main.CRITICAL: LogicException: Property "SourceCode" does not have accessor method "getSourceCode" in class "Magento\Sales\Api\Data\ShipmentCreationArgumentsExtensionInterface". in /var/www/magento/lib/internal/Magento/Framework/Reflection/NameFinder.php:103
Stack trace:
#0 /var/www/magento/lib/internal/Magento/Framework/Reflection/NameFinder.php(62): Magento\Framework\Reflection\NameFinder->findAccessorMethodName()
#1 /var/www/magento/lib/internal/Magento/Framework/Webapi/ServiceInputProcessor.php(289): Magento\Framework\Reflection\NameFinder->getGetterMethodName()
#2 /var/www/magento/lib/internal/Magento/Framework/Webapi/ServiceInputProcessor.php(514): Magento\Framework\Webapi\ServiceInputProcessor->_createFromArray()
#3 /var/www/magento/lib/internal/Magento/Framework/Webapi/ServiceInputProcessor.php(306): Magento\Framework\Webapi\ServiceInputProcessor->convertValue()
#4 /var/www/magento/lib/internal/Magento/Framework/Webapi/ServiceInputProcessor.php(514): Magento\Framework\Webapi\ServiceInputProcessor->_createFromArray()
#5 /var/www/magento/lib/internal/Magento/Framework/Webapi/ServiceInputProcessor.php(194): Magento\Framework\Webapi\ServiceInputProcessor->convertValue()
#6 /var/www/magento/app/code/Magento/Webapi/Controller/Rest/InputParamsResolver.php(115): Magento\Framework\Webapi\ServiceInputProcessor->process()
#7 /var/www/magento/lib/internal/Magento/Framework/Interception/Interceptor.php(58): Magento\Webapi\Controller\Rest\InputParamsResolver->resolve()
#8 /var/www/magento/lib/internal/Magento/Framework/Interception/Interceptor.php(138): Magento\Webapi\Controller\Rest\InputParamsResolver\Interceptor->___callParent()
#9 /var/www/magento/lib/internal/Magento/Framework/Interception/Interceptor.php(153): Magento\Webapi\Controller\Rest\InputParamsResolver\Interceptor->Magento\Framework\Interception{closure}()
#10 /var/www/magento/generated/code/Magento/Webapi/Controller/Rest/InputParamsResolver/Interceptor.php(23): Magento\Webapi\Controller\Rest\InputParamsResolver\Interceptor->___callPlugins()
#11 /var/www/magento/app/code/Magento/Webapi/Controller/Rest/SynchronousRequestProcessor.php(85): Magento\Webapi\Controller\Rest\InputParamsResolver\Interceptor->resolve()
#12 /var/www/magento/app/code/Magento/Webapi/Controller/Rest.php(188): Magento\Webapi\Controller\Rest\SynchronousRequestProcessor->process()
#13 /var/www/magento/lib/internal/Magento/Framework/Interception/Interceptor.php(58): Magento\Webapi\Controller\Rest->dispatch()
#14 /var/www/magento/lib/internal/Magento/Framework/Interception/Interceptor.php(138): Magento\Webapi\Controller\Rest\Interceptor->___callParent()
#15 /var/www/magento/lib/internal/Magento/Framework/Interception/Interceptor.php(153): Magento\Webapi\Controller\Rest\Interceptor->Magento\Framework\Interception{closure}()
#16 /var/www/magento/generated/code/Magento/Webapi/Controller/Rest/Interceptor.php(23): Magento\Webapi\Controller\Rest\Interceptor->___callPlugins()
#17 /var/www/magento/lib/internal/Magento/Framework/App/Http.php(116): Magento\Webapi\Controller\Rest\Interceptor->dispatch()
#18 /var/www/magento/lib/internal/Magento/Framework/App/Bootstrap.php(264): Magento\Framework\App\Http->launch()
#19 /var/www/magento/pub/index.php(30): Magento\Framework\App\Bootstrap->run()
#20 {main}
Next Exception: Report ID: webapi-63e244077431e; Message: Property "SourceCode" does not have accessor method "getSourceCode" in class "Magento\Sales\Api\Data\ShipmentCreationArgumentsExtensionInterface". in /var/www/magento/lib/internal/Magento/Framework/Webapi/ErrorProcessor.php:208
Stack trace:
#0 /var/www/magento/lib/internal/Magento/Framework/Webapi/ErrorProcessor.php(153): Magento\Framework\Webapi\ErrorProcessor->_critical()
#1 /var/www/magento/app/code/Magento/Webapi/Controller/Rest.php(190): Magento\Framework\Webapi\ErrorProcessor->maskException()
#2 /var/www/magento/lib/internal/Magento/Framework/Interception/Interceptor.php(58): Magento\Webapi\Controller\Rest->dispatch()
#3 /var/www/magento/lib/internal/Magento/Framework/Interception/Interceptor.php(138): Magento\Webapi\Controller\Rest\Interceptor->___callParent()
#4 /var/www/magento/lib/internal/Magento/Framework/Interception/Interceptor.php(153): Magento\Webapi\Controller\Rest\Interceptor->Magento\Framework\Interception{closure}()
#5 /var/www/magento/generated/code/Magento/Webapi/Controller/Rest/Interceptor.php(23): Magento\Webapi\Controller\Rest\Interceptor->___callPlugins()
#6 /var/www/magento/lib/internal/Magento/Framework/App/Http.php(116): Magento\Webapi\Controller\Rest\Interceptor->dispatch()
#7 /var/www/magento/lib/internal/Magento/Framework/App/Bootstrap.php(264): Magento\Framework\App\Http->launch()
#8 /var/www/magento/pub/index.php(30): Magento\Framework\App\Bootstrap->run()
#9 {main} [] []
`
Additional information
No response
Release note
No response
Triage and priority
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.