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

Asynchronous calls don't aways run the callback #29

Open
mainTAP opened this issue Nov 9, 2018 · 0 comments
Open

Asynchronous calls don't aways run the callback #29

mainTAP opened this issue Nov 9, 2018 · 0 comments

Comments

@mainTAP
Copy link

mainTAP commented Nov 9, 2018

Hello,

I've noticed that when asynchornous call is being used and the authentification token expires, the call never runs the callback.

If synchorous call is used, the call uses BambouHTTPError exception with error code 401.

When asynchronous call encouter error 404, it does run the provided callback and the response can be checked for the status_code, but this doesn't happen in case of error 401 ( haven't managed to try with all the other error events )
Would it be possible to make the asynchronous calls to run the callback in all ocasions in order to deal with possile errors returned back from the API ?

Many thanks.

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