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

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

Open
armanjindal opened this issue Jul 4, 2021 · 0 comments

Comments

@armanjindal
Copy link

armanjindal commented Jul 4, 2021

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!

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