-
Notifications
You must be signed in to change notification settings - Fork 11.8k
v7.6.0 v1/login API returns 401, while v7.5.1 works #36073
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
Comments
Always test on the latest versions. Check this first. https://github.com/RocketChat/Rocket.Chat/releases/tag/7.6.1 |
On 7.6.1 still same issue |
v7.6.1 has the same issue. Following is the server log after I upgraded to v7.6.1 and try to access from Jenkins plugin:
|
can you please confirm that the following command works? curl -X POST \
-H "Content-Type: application/json" \
-d '{"user": "SAME_USERNAME", "password": "SAME_PASSWORD"}' \
http://your.rocket.chat.url/api/v1/login |
For me:
|
thanks @koda-pub .. I wonder then how the Jenkins plugin is trying to log in.. any idea on how to debug this further? we know the log in endpoint works, we just need to figure out why it is not working for that specific plugin |
What I've noticed that all integrations based on webhook are working fine (which is quite obvious) like AWX or Gitea. And it seems here is the source for RocketChat integration. I know it's someone else code - but just FYI ;) |
I was able to pinpoint the issue here.. On version 7.6.0 the log in using regular form data ( The PR #36068 fixes it, so in 7.7.0 it will get to work. We're evaluating into shipping a patch release for 7.6.x including the fix. Meanwhile I figured out Home Assistant is using a very old library for communicating with Rocket.Chat so I opened a PR updating it: home-assistant/core#145755 this will fix the issue for Home Assistant since it uses JSON payload to log in. |
My response is a little bit late, but, yes, my I'm very appreciate to hear that the PR fixes and 7.6.x will come soon. Thank you very much! |
And I can confirm that it's working again for me with HA (on latest tag). |
I have confirmed that 7.6.2 works with jenkins 'rocketchatnotifier' plugin. Thank you very much! |
Description:
Steps to reproduce:
Expected behavior:
Rocketchat API returns 200.
Actual behavior:
Rocketchat API returns 401.
Server Setup Information:
Client Setup Information
Additional context
n/a
Relevant logs:
The text was updated successfully, but these errors were encountered: