- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
REST API get all product with 500 status code
I've an magento CE 2.2.3 instance running. I'm facing some problem on the REST API. I did all the necessary steps to create a successful API integration. Problem is when I call REST API it fetch the results but the response code is 500. For this I unable to integrate any 3party integration. Please help. I'm using POSTMAN to test the API.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: REST API get all product with 500 status code
Hi @jd2017
I will recommend you to check for var directory permission. OR check logs for rest API hit in the var logs.
Once try to run all these commands:
sudo rm -Rf pub/static/frontend/* var/pre_processed/* pub/static/_requirejs/* sudo rm -Rf var/generation/* var/di/* var/cache/* sudo php bin/magento setup:upgrade sudo php bin/magento setup:di:compile sudo php bin/magento setup:static-content:deploy -f sudo php bin/magento cache:clean sudo php bin/magento cache:flush sudo chmod -R 777 var/ pub/ generated/
If commands not working, try by removing sudo.
I hope it will help you.
---
If you've found my answers useful, please give"Kudos" or "Accept as Solution"
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: REST API get all product with 500 status code
@PankajS_Magento there is no such error on the log folder as well. Is there any other way to check from where 500 internal server error status code throws in magento on API call?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: REST API get all product with 500 status code
I have found the error.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: REST API get all product with 500 status code
Hi @jd2017
Great to knowing this. Can you please share the error with me So I can check for that solution.
Thanks