-
Notifications
You must be signed in to change notification settings - Fork 125
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
Plugin can not connect to Jenkins anmyore with: [Fail] CSRF enabled -> Missing or bad crumb data #512
Comments
Hi is the application token still valid or expired? Can you test following from terminal please:
|
Thanks for you fast response. I got an authorization error and so I removed the old token and created a new one. It's working again. You are doing an incredible job with the plugin. |
Thanks a lot |
@MCMicS WebStorm 2023.1
{"_class":"hudson.model.Hudson","nodeName":"","description":null,"primaryView":{"_class":"hudson.model.AllView","name":"all","url":"https://jenkins.*******/"},"url":"https://jenkins.******/"} I tried server address with (and without) suffix: |
And used api token instead of password? |
My solution was:
|
Hi |
I tried with password and token.
I tried with new token :( .
Sure!
Just to let you know, this instance is running in a Docker with Nginx reverse proxy. |
Is this aerver public visible and can you geant me access for test? Channel: https://matrix.to/#/#jenkins-control-plugin_community:gitter.im If not possible to grant access I can provide a version with extended logging If you have any proxy configured in webstorm to use? Ist this a new installation or was this working before and happens after an update? Can you retry curl with Post please? |
It's working again! Please see my past message #512 (comment) . |
Ai thought you mean with the comment that your token worls in the linter plugin but not in jenkins control. So its working for +u now? Then can this be closed? |
Yes, it's perfect. You can close this issue.
Em dom., 27 de ago. de 2023 às 16:18, MCMicS ***@***.***>
escreveu:
… Ai thought you mean with the comment that your token worls in the linter
plugin but not in jenkins control.
So its working for +u now? Then can this be closed?
—
Reply to this email directly, view it on GitHub
<#512 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAM75ZE742YCXPYKGU5LS3LXXOMO5ANCNFSM6AAAAAA3ZUQ5Z4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Hey @MCMicS! I'm on 0.13.19-2023.2 and still facing this issue. My Jenkins is a CloudBees Ci Managed Controller, and the Jenkins Linter plugin is able to connect with the same username/token I'm trying here - I was actually configuring both plugins at the same time :) My Jenkins configuration is a bit different - https://jenkins.server/api/json returns a 503 whereas https://jenkins.server/my-team-name/api/json returns the expected json. The following curl command returns the expected result:
I've also tried these settings with the v0.13.17 (before the crumb config was removed) and got the same result. |
hmm strange if you use api token the crumb shoulb be not needed. I can have look next week. |
Interesting... Welp I can assure you I'm using a Jenkins token - the same token I'm using for the Jenkins Linter plugin. I unfortunately cannot grant you access to my server, but I'm happy to help you debug! |
hmm I created special version with additinal logs a time ago (see #69 (comment)). may you can use this to get further informations or I add additional logs the days in a newer version
|
The Jenkins-Control-Plugin 1.8.3 stopped working.
It worked prior to the update.
If I test the connection I got the error message:
[Fail] CSRF enabled -> Missing or bad crumb data
We already used an application token for authentification.
IntelliJ 2023.2 (Ultimate)
Jenkins 2.346.1
Message shown:
HTTP ERROR 403 No valid crumb was included in the request
URI:
/api/json
STATUS:
403
MESSAGE:
No valid crumb was included in the request
SERVLET:
Stapler
Powered by Jetty:// 9.4.45.v2022020
The text was updated successfully, but these errors were encountered: