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

Provide hook to handle status codes #50

Open
Altreus opened this issue Sep 25, 2018 · 0 comments
Open

Provide hook to handle status codes #50

Altreus opened this issue Sep 25, 2018 · 0 comments

Comments

@Altreus
Copy link

Altreus commented Sep 25, 2018

I couldn't figure out how to do this easily but I might put more effort into it if no one can see an obvious way of doing it quickly.

Basically, I would like to handle 4xx errors from webservices that have codes outside of the standard set: Twitter and Discord have different rate-limiting status codes (420 and 429 respectively), but I'm having trouble creating a role that correctly extends request.

It would be far easier if I could supply a method that was able to retry, but I don't know enough Perl6 yet to refactor request such that it can still .emit properly.

So I will be experimenting with my own patches for academic purposes but I beseech thee to write it properly for the good of the future :)

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

No branches or pull requests

1 participant