24

we use the Magento API to update our warehouse system when we receive orders and then update Magento again with inventory updates from our warehouse system. However, we recently had an order that gave the below error and we are not sure how or where to access the API error log?

"Internal Error. Details are available in Magento log file. Report ID: webapi-5c644d10f0e26"

I have looked in var/log as well as in the var/report and I don't see any API folder or log file with API referenced in the name??

I have magento 2.2.5

3 Answers 3

52

Just run the below command in magento root directory, it will show that log file location.

grep -r "Report ID: webapi-5c644d10f0e26" var/

Note: Change the above report id as per your error report - e.g) Report ID: webapi-xxxxxxxxxxx

Up to my mind it is in exception.log file and find the line with the content webapi-5c644d10f0e26 for the detailed report.

1
  • How can I find the log using only the web interface? I do not have access to the underlying OS.
    – Shawn
    Commented Feb 22 at 21:04
1

You can check exception.log for the same and find the report id "webapi-5c644d10f0e26"

[2022-09-22 04:43:55] report.CRITICAL: Report ID: webapi-632be80baacc4; Message: Notice: Trying to get property 'itemsCsvP' of non-object in /var/www/html/app/code/vendor/ApiConnect/Model/GetMultiProductStock.php on line 55 {"exception":"[object] (Exception(code: 0): Report ID: webapi-632be80baacc4; Message: Notice: Trying to get property 'itemsCsvP' of non-object in /var/www/html/app/code/vendor/ApiConnect/Model/GetMultiProductStock.php on line 55 at /var/www/html/vendor/magento/framework/Webapi/ErrorProcessor.php:208, Exception(code: 0): Notice: Trying to get property 'itemsCsvP' of non-object in /var/www/html/app/code/vendor/ApiConnect/Model/GetMultiProductStock.php on line 55 at /var/www/html/vendor/magento/framework/App/ErrorHandler.php:61)"} []

0

It should be present in var/log/system.log.

1
  • It should be recorded exception.log NOT system.log.
    – madagaskar
    Commented Aug 30 at 13:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.