-
Bug
-
Resolution: Fixed
-
Blocker
-
None
-
GitHub Branch Source Plugin: 2.6.0
GitHub plugin: 1.29.5
GitHub API Plugin: 1.110
Branch API: 2.3.0
Jenkins: 2.164.3
When fetching branches from the github repository, having the following error.
ERROR: [Wed Apr 15 18:09:01 EDT 2020] Could not fetch branches from source if this isn't set then all branches will be rebuilt on refCreated and refDeleted events com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (JSON String, Number, Array, Object or token 'null', 'true' or 'false') at [Source: (StringReader); line: 1, column: 2] at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1840) at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:712) at com.fasterxml.jackson.core.base.ParserMinimalBase._reportUnexpectedChar(ParserMinimalBase.java:637) at com.fasterxml.jackson.core.json.ReaderBasedJsonParser._handleOddValue(ReaderBasedJsonParser.java:1916) at com.fasterxml.jackson.core.json.ReaderBasedJsonParser.nextToken(ReaderBasedJsonParser.java:772) at com.fasterxml.jackson.databind.ObjectReader._initForReading(ObjectReader.java:357) at com.fasterxml.jackson.databind.ObjectReader._bindAndClose(ObjectReader.java:1704) at com.fasterxml.jackson.databind.ObjectReader.readValue(ObjectReader.java:1261) at org.kohsuke.github.GitHubResponse.parseBody(GitHubResponse.java:85) at org.kohsuke.github.GitHubPageIterator.lambda$fetch$0(GitHubPageIterator.java:145) at org.kohsuke.github.GitHubClient.createResponse(GitHubClient.java:406) at org.kohsuke.github.GitHubClient.sendRequest(GitHubClient.java:360) Caused: org.kohsuke.github.HttpException: Server returned HTTP response code: 200, message: '304 Not Modified' for URL