-
Notifications
You must be signed in to change notification settings - Fork 42
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
Trouble with API call #38
Comments
Hi, How are you passing the token to the tree-gateway Endpoints? You need to add the token in the 'Authorization' header, setting the schema to 'JWT'.
You can test it through the swagger-ui available at:
Click on the red exclamation mark next in the endpoint box to authenticate. And about the error message. The error stack trace is appearing because you are running the gateway in development mode. If you set the NODE_ENV variable to production, the stack trace will not be sent to the browser. |
Hi, |
Hi, With the gateway configuration and the curl request command, I can reproduce the problem here and help you properly. Thanks. |
@gcornetta I initially ran into the same issue, until I realized that I needed to use |
Hi,
I have successfully installed and configured the API gateway. I can call the /users/authentication and get the JWT token to authorise the APIs call; however, when I try to call an API (for example to register a new user) I receive a 401 response. Looking at the error stack it seems it is a passport authentication error.
Could you please help me solving this issue? Thank you so much in advance.
The text was updated successfully, but these errors were encountered: