Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: reject request promise if remove server is unavailable #1418

Closed
wants to merge 1 commit into from

Conversation

igor-lemon
Copy link

@igor-lemon igor-lemon commented Sep 29, 2021

New Pull Request Checklist

Issue Description

Reject promise when remote parse server is unavailable

Related issue: #1417

  • Add tests
  • Add entry to changelog
  • Add changes to documentation (guides, repository pages, in-code descriptions)

@parse-github-assistant
Copy link

parse-github-assistant bot commented Sep 29, 2021

Thanks for opening this pull request!

  • ❌ Please edit your post and use the provided template when creating a new pull request. This helps everyone to understand your post better and asks for essential information to quicker review the pull request.

@igor-lemon igor-lemon changed the title Reject request promise if remove server is unavailable fix: Reject request promise if remove server is unavailable Sep 29, 2021
@igor-lemon
Copy link
Author

Hi @mtrezza! Can you check the PR?

@mtrezza
Copy link
Member

mtrezza commented Oct 14, 2021

@igor-lemon it seems the build is failing, could you take a look? apologies for the long wait...

@parse-github-assistant
Copy link

I will reformat the title to use the proper commit message syntax.

@parse-github-assistant parse-github-assistant bot changed the title fix: Reject request promise if remove server is unavailable fix: reject request promise if remove server is unavailable Oct 16, 2021
@mtrezza
Copy link
Member

mtrezza commented Oct 25, 2021

@igor-lemon I noticed that you closed this PR, did you wait for a review?

@igor-lemon
Copy link
Author

Sorry, the PR is not actual. The problem was not in the promise rejecting, the problem was at the request retries and timeout between each other. It looked like infinity waiting and blocked an app. The SDK tries to make 5 reconnect attempts with increasing time between each request. I solved it at my side by setting max 3 retries. It solved my problem

Parse.CoreManager.set('REQUEST_ATTEMPT_LIMIT', 3)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants