Hi everyone!
When I'm using Rest API, I cannot get product information because getting following error:
{ "message": "Internal Error. Details are available in Magento log file. Report ID: webapi-5b8ffa5f74916" }
I checked logs and here log details:
[2018-09-05 15:46:39] main.CRITICAL: Report ID: webapi-5b8ffa5f74916; Message: Notice: Undefined index: FAJ-019-Black-S in /data/web/public/vendor/magento/module-catalog/Model/ProductRepository.php on line 254 {"exception":"[object] (Exception(code: 0): Report ID: webapi-5b8ffa5f74916; Message: Notice: Undefined index: FAJ-019-Black-S in /data/web/public/vendor/magento/module-catalog/Model/ProductRepository.php on line 254 at /data/web/public/vendor/magento/framework/Webapi/ErrorProcessor.php:205, Exception(code: 0): Notice: Undefined index: FAJ-019-Black-S in /data/web/public/vendor/magento/module-catalog/Model/ProductRepository.php on line 254 at /data/web/public/vendor/magento/framework/App/ErrorHandler.php:61)"} []
I made reindex for products but still can't understand what's wrong. I can be thankful if anyone have idea.
Thank you.
Solved! Go to Solution.
Hello @sam_gg
seems like you are using old magento 2 version and it is already fixed
https://github.com/magento/magento2/commit/3b50751687f873a645b914194228e0006fa1cb1b
please check above link for same.
If works then mark as solution
Hello @sam_gg
seems like you are using old magento 2 version and it is already fixed
https://github.com/magento/magento2/commit/3b50751687f873a645b914194228e0006fa1cb1b
please check above link for same.
If works then mark as solution
Hello @sam_gg,
Yes. There is an issue on Magento 2. Another developer is created PR for it. If you need to fix it then please do the same thing in your Magento file
https://github.com/magento/magento2/pull/14019/files
This issue will be sorted out in the next version.
--
If my answer is useful, please Accept as Solution & give Kudos
Thanks, guys! It worked.