-
Notifications
You must be signed in to change notification settings - Fork 53
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
Unable to fetch pipeline history #103
Comments
+1 |
+1 to this being an issue As @jg-synth mentioned this is due to missing headers. I was able to work around this by passing in the headers during the getUrl function in src/main/java/in/ashwanthkumar/gocd/slack/jsonapi/Server.java. I'll put the code below, but don't plan on making an MR since I'm sure there are much better ways to do this, but I'm not well versed in java and can't spend the time finding it. We were also not getting fixed notifications after a pipeline broke and then succeeded, this also restored that.
|
PR to fix this: |
Fixed as part of #104 Thanks @nicolaasuni |
Many Thanks! |
Summary
Using plugin 1.4.0 and GoCD 20.1.0, I am unable to get pipeline history from the API.
I believe this is due to a missing header in the request. In GoCD 20.1.0, the pipeline history endpoint has been upgraded to version 1 and so it is necessary to include the
Accept
header:Configuration
GoCD Version: 20.1.0 (11114-f2c1771e333ea92dae82cd78d2efa1310c1086f0).
Plugin Version: 1.4.0
Error
Unable to fetch build details from API.
Logs
Context
The text was updated successfully, but these errors were encountered: