{"action":"created","issue":{"url":"https://api.github.com/repos/pycontribs/jenkinsapi/issues/526","repository_url":"https://api.github.com/repos/pycontribs/jenkinsapi","labels_url":"https://api.github.com/repos/pycontribs/jenkinsapi/issues/526/labels{/name}","comments_url":"https://api.github.com/repos/pycontribs/jenkinsapi/issues/526/comments","events_url":"https://api.github.com/repos/pycontribs/jenkinsapi/issues/526/events","html_url":"https://github.com/pycontribs/jenkinsapi/issues/526","id":196282689,"number":526,"title":"adopting the start_parameterized_build.py example gives 'No valid crumb was included in the request'","user":{"login":"dothebart","id":5013077,"avatar_url":"https://avatars.githubusercontent.com/u/5013077?v=3","gravatar_id":"","url":"https://api.github.com/users/dothebart","html_url":"https://github.com/dothebart","followers_url":"https://api.github.com/users/dothebart/followers","following_url":"https://api.github.com/users/dothebart/following{/other_user}","gists_url":"https://api.github.com/users/dothebart/gists{/gist_id}","starred_url":"https://api.github.com/users/dothebart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dothebart/subscriptions","organizations_url":"https://api.github.com/users/dothebart/orgs","repos_url":"https://api.github.com/users/dothebart/repos","events_url":"https://api.github.com/users/dothebart/events{/privacy}","received_events_url":"https://api.github.com/users/dothebart/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-18T15:51:58Z","updated_at":"2016-12-22T11:50:53Z","closed_at":"2016-12-20T12:02:22Z","body":"##### ISSUE TYPE\r\n - Bug Report when triggering a build with jenkins 2:\r\n\r\n##### Jenkins VERSION\r\nJenkins 2.34\r\n##### SUMMARY\r\nwhen trying to trigger a build, an error is thrown.\r\n##### EXPECTED RESULTS\r\nthe build should start\r\n##### ACTUAL RESULTS\r\n```\r\n    qi = job.invoke(build_params=params)\r\n  File \"/usr/local/lib/python3.5/dist-packages/jenkinsapi/job.py\", line 214, in invoke\r\n    allow_redirects=False\r\n  File \"/usr/local/lib/python3.5/dist-packages/jenkinsapi/utils/requester.py\", line 148, in post_and_confirm_status\r\n    response.text.encode('UTF-8')\r\njenkinsapi.custom_exceptions.JenkinsAPIException: Operation failed. url=https://master.jenkins.arangodb.info/job/test%20fedora/buildWithParameters, data={'json': '{\"redirectTo\": \".\", \"statusCode\": \"303\", \"parameter\": {\"value\": \"True\", \"name\": \"SKIP_BUILD\"}}', 'SKIP_BUILD': True}, headers={'Content-Type': 'application/x-www-form-urlencoded'}, status=403, text=b'<html>\\n<head>\\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/>\\n<title>Error 403 No valid crumb was included in the request</title>\\n</head>\\n<body><h2>HTTP ERROR 403</h2>\\n<p>Problem accessing /job/test%20fedora/buildWithParameters. Reason:\\n<pre>    No valid crumb was included in the request</pre></p><hr><i><small>Powered by Jetty://</small></i><hr/>\\n\\n</body>\\n</html>\\n'\r\n```\r\n\r\n##### USEFUL INFORMATION\r\nIt seems this issue is about similar problems:\r\nhttps://github.com/jan-molak/jenkins-build-monitor-plugin/issues/215\r\nAnother Hint from the jenkins wiki: \r\nhttps://wiki.jenkins-ci.org/display/JENKINS/Remote+access+API#RemoteaccessAPI-CSRFProtection"},"comment":{"url":"https://api.github.com/repos/pycontribs/jenkinsapi/issues/comments/268784375","html_url":"https://github.com/pycontribs/jenkinsapi/issues/526#issuecomment-268784375","issue_url":"https://api.github.com/repos/pycontribs/jenkinsapi/issues/526","id":268784375,"user":{"login":"pilgrim2go","id":8703838,"avatar_url":"https://avatars.githubusercontent.com/u/8703838?v=3","gravatar_id":"","url":"https://api.github.com/users/pilgrim2go","html_url":"https://github.com/pilgrim2go","followers_url":"https://api.github.com/users/pilgrim2go/followers","following_url":"https://api.github.com/users/pilgrim2go/following{/other_user}","gists_url":"https://api.github.com/users/pilgrim2go/gists{/gist_id}","starred_url":"https://api.github.com/users/pilgrim2go/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pilgrim2go/subscriptions","organizations_url":"https://api.github.com/users/pilgrim2go/orgs","repos_url":"https://api.github.com/users/pilgrim2go/repos","events_url":"https://api.github.com/users/pilgrim2go/events{/privacy}","received_events_url":"https://api.github.com/users/pilgrim2go/received_events","type":"User","site_admin":false},"created_at":"2016-12-22T11:50:53Z","updated_at":"2016-12-22T11:50:53Z","body":"I got the same issue. Then tried \r\nhttps://wiki.jenkins-ci.org/display/JENKINS/CSRF+Protection\r\nto disable crumb.\r\nIt's now working"}}
{"actor":{"display_login":"pilgrim2go"}}