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

Catch expected HTTPErrors for BTF #67

Open
davidverweij opened this issue Apr 6, 2021 · 0 comments
Open

Catch expected HTTPErrors for BTF #67

davidverweij opened this issue Apr 6, 2021 · 0 comments
Labels
byteflies FS Device feature new feature or request tests error prevention

Comments

@davidverweij
Copy link
Member

For BTF, we can expect a few errors that we can catch and handle:

  • 401 when not authorised --> should re-auth
  • 429 and 502 when performing too many requests --> should wait
  • 502 when too large requests --> should reduce the timespan for which we query

Although most of these are roughly taken care of in the design of the BTF code - additional catching will ensure smooth operation in the long run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
byteflies FS Device feature new feature or request tests error prevention
Projects
None yet
Development

No branches or pull requests

1 participant