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

The page throws a 400 sometimes #5

Open
cherta opened this issue Jan 18, 2021 · 0 comments
Open

The page throws a 400 sometimes #5

cherta opened this issue Jan 18, 2021 · 0 comments
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@cherta
Copy link

cherta commented Jan 18, 2021

This happens because react-query queries the endpoints after N seconds even if nothing happened. This makes queries to the Slack APIs and because we have a per minute limit on those APIs the request fails making the app to show the 400 error page.

Ways to fix this:

  • Add a try and catch Blok on every call to Slack API methods
  • Ask react-query to stop querying after the first request (I prefer this one)
@cherta cherta added bug Something isn't working good first issue Good for newcomers labels Jan 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants