Parse-SDK-JS
Parse-SDK-JS copied to clipboard
Many repeated health requests if a server return an error in response
New Issue Checklist
- [x] I am not disclosing a vulnerability.
- [x] I am not just asking a question.
- [x] I have searched through existing issues.
- [x] I can reproduce the issue with the latest versions of Parse Server and the Parse JS SDK.
Issue Description
If backend return 4xx or 5xx error to /health request SDK makes many repeated /health requests per second endless.
Steps to reproduce
Return to the health request 400 or 500 error.
Actual Outcome
SDK makes many repeated requests per second
Expected Outcome
Should make next health request in 2 seconds

Thanks for opening this issue!
- ❌ Please edit your post and use the provided template when creating a new issue. This helps everyone to understand your post better and asks for essential information to quicker review the issue.
Could you rephrase the issue description? I am not sure how to understand it. Do you mean that a 4xx or 5xx response from the server triggers many repeated requests to the health endpoint from the SDK?
If a HTTP server return 400 or 500 code to /health request SDK start spam /health requests many times without any delay, ~4-6 requests per seconds endless
Can you reproduce this in a PR with a test?
nope
Can you add the steps to reproduce this somehow?
@mtrezza this was fixed via https://github.com/parse-community/Parse-SDK-JS/pull/1419
Was this a Parse Server issue or a Parse JS SDK issue? If so, I'll move the issue to the JS SDK.
This is the JS SDK that the issue was posted in, no need to move it
Closed via https://github.com/parse-community/Parse-SDK-JS/pull/1419