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

HTTP request seems not carry auth token when authorization chose API-Key Bearer #16133

Closed
5 tasks done
joebnb opened this issue Mar 18, 2025 · 2 comments
Closed
5 tasks done
Labels
🐞 bug Something isn't working

Comments

@joebnb
Copy link

joebnb commented Mar 18, 2025

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.1.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Image Image

this workflow works in 1.0.1 but 1.1.0 the only different is bump version and recreate docker containers

✔️ Expected Behavior

No response

❌ Actual Behavior

No response

@dosubot dosubot bot added the 🐞 bug Something isn't working label Mar 18, 2025
Copy link

dosubot bot commented Mar 18, 2025

Hey @joebnb! 👋 I'm here to help you with any bugs, questions, or contributions you might have for the project. Let's tackle this issue together!

I found a similar unsolved discussion titled "Access unauthorized 401" that might be related to your issue [1].

For your specific problem, ensure that the API-Key Bearer token is correctly included in the HTTP request headers. In version 1.1.0, the token should be formatted as 'Bearer ' and included in the Authorization header. If the format is incorrect, it will result in authentication errors. Additionally, verify that the API key is valid and that the CORS configuration is correct, with CONSOLE_CORS_ALLOW_ORIGINS and WEB_API_CORS_ALLOW_ORIGINS properly set, typically to '*' [2].

If these configurations are correct and the issue persists, it might be beneficial to review the Docker environment variables related to authentication to ensure they are set up correctly for version 1.1.0 [3].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@joebnb
Copy link
Author

joebnb commented Mar 18, 2025

solved

@joebnb joebnb closed this as completed Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant