Skip to content

Asynchronous calls don't aways run the callback #29

@mainTAP

Description

@mainTAP

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions