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

How to get Headers and response status from the MainClient? #229

Open
skliarovartem opened this issue Aug 23, 2022 · 2 comments
Open

How to get Headers and response status from the MainClient? #229

skliarovartem opened this issue Aug 23, 2022 · 2 comments
Assignees
Labels

Comments

@skliarovartem
Copy link
Contributor

I need to track response status and headers to control rate limits and didn't find the way to get it.
There is only getRateLimitStates() which is quite not enough to work with rate limits. For example I need retry-after and statusCode definitely
Many thanks!

@skliarovartem
Copy link
Contributor Author

I found retry-after in headers in error object. This issue can be closed!

@tiagosiebler
Copy link
Owner

I found retry-after in headers in error object. This issue can be closed!

Interesting, what would make this more intuitive? Adding retry-after tracking to the getRateLimitStates()? Would love to hear thoughts on making this easier, since you're the first to talk about working with rate limits.

@tiagosiebler tiagosiebler reopened this Aug 29, 2022
@tiagosiebler tiagosiebler self-assigned this Aug 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants