FetchError in request to ES: FetchError: invalid json response body
See original GitHub issueCurrent behavior
Sometimes (completely random) the API will just return a blank page when it’s supposed to return an elasticsearch response. This will cause an error page and the error to be logged to our loggin software. In the last 3 weeks this has happened about 23.5k times so it happens quite often.
I saw that a new API project (storefront-api) will be used for a future release of VSF but I can’t test if it also happens there because putting that API on a production environment and changing all our api extensions is just too much work.
Expected behavior
It should get a valid response or request it again if the data was invalid.
Steps to reproduce the issue
This only happens on a production API and it doesn’t output any errors to the logs. It just returns a 200 response with a blank page. The most occurrences have happened on this API endpoint:
api/catalog/vue_storefront_magento_1/attribute/_search
Can you handle fixing this bug by yourself?
- YES
- NO
Which Release Cycle state this refers to? Info for developer.
Pick one option.
- This is a bug report for test version on https://test.storefrontcloud.io - In this case Developer should create branch from
develop
branch and create Pull Request2. Feature / Improvement
back todevelop
. - This is a bug report for current Release Candidate version on https://next.storefrontcloud.io - In this case Developer should create branch from
release
branch and create Pull Request3. Stabilisation fix
back torelease
. - This is a bug report for current Stable version on https://demo.storefrontcloud.io and should be placed in next stable version hotfix - In this case Developer should create branch from
hotfix
ormaster
branch and create Pull Request4. Hotfix
back tohotfix
.
Environment details
- Browser: Chrome 81.0.4044.129
- OS: Mac OS 10.15.1
- Node: V10.19.0
- Code Version: V1.11.1
Additional information
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (1 by maintainers)
Top GitHub Comments
This could be related to #393
Sry, I miss read it then. So thanks for the Info that is gone.
But you may still want to look into the fix, as it fixes a memory leak as creating a new ES clients for every request 😄.