Skip to content

Forgot to pass the Airy Auth Token in the call to API leading to a 403 when Airy is secured#3

Description

@armanjindal

Was implementing the Rasa-X integration, and ran into a 403 when calling the Airy API. I realized that the auth token is not passed into the response.post calls.

Since the config.py does take in the environment variable for the token, and in order to get the bug you have to run the rasa action server in debug mode it might be worth passing it in as default.

The recommended fix is adding authorization = {'Authorization': f'Bearer {self.system_token}'} and passing it in as a header. This fix solved my issues, so It might help/save some time for someone else!

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