org.kohsuke.github.HttpException: Server returned HTTP response code: 200, message: 'OK' for URL: http://policestate/api/v3/repos/operationalplatform/ruby-workbench/statuses/e77d34b0cb8e79456a7df6c99e879dfec98e9082


Samebug tips2

Try indicating constructor to use @JsonCreator annotation.


2 months ago
Expert tip

You are trying to deserialize a type for which Jackson does not provide a default mapper. You should create your custom mapper for this type.


Solutions on the web13

Solution icon of github
Server returned HTTP response code: 200, message: 'OK' for URL: http://policestate/api/v3/repos/operationalplatform/ruby-workbench/statuses/e77d34b0cb8e79456a7df6c99e879dfec98e9082

Solution icon of github
via GitHub by McFoggy
, 1 year ago
Server returned HTTP response code: -1, message: 'null' for URL: http://XXXXXXXXXXXXXXXXXXXXX/api/v3/repos/awxgx/jira-git-demo-01/pulls?state=open

Solution icon of github
via GitHub by v1v
, 1 year ago
Server returned HTTP response code: 401, message: 'Unauthorized' for URL: https://github/api/v3/rate_limit

Solution icon of github
via GitHub by civitaspo
, 8 months ago
Server returned HTTP response code: 422, message: 'Unprocessable Entity' for URL: https://api.github.com/repos/MY-ORG/MY-REPO/statuses/a3812f1cd5de29ac9f71b526ca093c8d88374321

Solution icon of github
Server returned HTTP response code: 422, message: 'Unprocessable Entity' for URL: https://api.github.com/repos/nurupo/test/statuses/1330d1a6ddc3a067fdb056e4ac94d99efda2c5b6

Solution icon of googlegroups
via Google Groups by Benson Margulies, 11 months ago
Server returned HTTP response code: -1, message: 'null' for URL: https://git.basistech.net/api/v3/user

Solution icon of github
via GitHub by ldimaggi
, 1 month ago
Server returned HTTP response code: -1, message: 'null' for URL: https://api.github.com/repos/ldimaggi/august

Solution icon of github
Server returned HTTP response code: -1, message: 'null' for URL: https://api.github.com/repos/hrishin/test: org.kohsuke.github.HttpException: Server returned HTTP response code: -1, message: 'null' for URL: https://api.github.com/repos/hrishin/test --

Solution icon of github
via GitHub by baranowb
, 1 month ago
Server returned HTTP response code: -1, message: 'null' for URL: https://api.github.com/repos/jbossas/jboss-eap7/pulls/2306

Solution icon of github
via GitHub by jdelagnes
, 3 months ago
Server returned HTTP response code: -1, message: 'null' for URL: https://api.github.com/rate_limit

Stack trace

org.kohsuke.github.HttpException: Server returned HTTP response code: 200, message: 'OK' for URL: http://policestate/api/v3/repos/operationalplatform/ruby-workbench/statuses/e77d34b0cb8e79456a7df6c99e879dfec98e9082
	at org.kohsuke.github.Requester.parse(Requester.java:551)
	at org.kohsuke.github.Requester._to(Requester.java:262)
	at org.kohsuke.github.Requester.to(Requester.java:224)
	at org.kohsuke.github.GHRepository.createCommitStatus(GHRepository.java:973)
	at org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus.createCommitStatus(GhprbSimpleStatus.java:273)
	at org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus.onBuildStart(GhprbSimpleStatus.java:186)
	at org.jenkinsci.plugins.ghprb.GhprbBuilds.onStarted(GhprbBuilds.java:132)
	at org.jenkinsci.plugins.ghprb.GhprbBuildListener.onStarted(GhprbBuildListener.java:24)
	at org.jenkinsci.plugins.ghprb.GhprbBuildListener.onStarted(GhprbBuildListener.java:17)
	at hudson.model.listeners.RunListener.fireStarted(RunListener.java:216)
	at hudson.model.Run.execute(Run.java:1737)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:98)
	at hudson.model.Executor.run(Executor.java:410)
Caused by: java.io.IOException: Failed to deserialize [{"url":"http://policestate/api/v3/repos/operationalplatform/ruby-workbench/statuses/e77d34b0cb8e79456a7df6c99e879dfec98e9082","id":2,"state":"pending","description":"The build is runnning!","target_url":"http://jenkins-police/job/Ruby-workbench-builder/lastSuccessfulBuild/console","context":"continuous-integration/jenkins","created_at":"2017-01-06T10:10:17Z","updated_at":"2017-01-06T10:10:17Z","creator":{"login":"callum","id":5,"avatar_url":"http://policestate/avatars/u/5?","gravatar_id":"","url":"http://policestate/api/v3/users/callum","html_url":"http://policestate/callum","followers_url":"http://policestate/api/v3/users/callum/followers","following_url":"http://policestate/api/v3/users/callum/following{/other_user}","gists_url":"http://policestate/api/v3/users/callum/gists{/gist_id}","starred_url":"http://policestate/api/v3/users/callum/starred{/owner}{/repo}","subscriptions_url":"http://policestate/api/v3/users/callum/subscriptions","organizations_url":"http://policestate/api/v3/users/callum/orgs","repos_url":"http://policestate/api/v3/users/callum/repos","events_url":"http://policestate/api/v3/users/callum/events{/privacy}","received_events_url":"http://policestate/api/v3/users/callum/received_events","type":"User","site_admin":false}},{"url":"http://policestate/api/v3/repos/operationalplatform/ruby-workbench/statuses/e77d34b0cb8e79456a7df6c99e879dfec98e9082","id":1,"state":"pending","description":"The build is runnning!","target_url":"http://jenkins-police/job/Ruby-workbench-builder/lastSuccessfulBuild/console","context":"continuous-integration/jenkins","created_at":"2017-01-06T09:36:01Z","updated_at":"2017-01-06T09:36:01Z","creator":{"login":"callum","id":5,"avatar_url":"http://policestate/avatars/u/5?","gravatar_id":"","url":"http://policestate/api/v3/users/callum","html_url":"http://policestate/callum","followers_url":"http://policestate/api/v3/users/callum/followers","following_url":"http://policestate/api/v3/users/callum/following{/other_user}","gists_url":"http://policestate/api/v3/users/callum/gists{/gist_id}","starred_url":"http://policestate/api/v3/users/callum/starred{/owner}{/repo}","subscriptions_url":"http://policestate/api/v3/users/callum/subscriptions","organizations_url":"http://policestate/api/v3/users/callum/orgs","repos_url":"http://policestate/api/v3/users/callum/repos","events_url":"http://policestate/api/v3/users/callum/events{/privacy}","received_events_url":"http://policestate/api/v3/users/callum/received_events","type":"User","site_admin":false}}]
	at org.kohsuke.github.Requester.parse(Requester.java:541)
	... 13 more
Caused by: com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of org.kohsuke.github.GHCommitStatus out of START_ARRAY token
 at [Source: java.io.StringReader@51dc34e8; line: 1, column: 1]
	at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:164)
	at com.fasterxml.jackson.databind.DeserializationContext.mappingException(DeserializationContext.java:575)
	at com.fasterxml.jackson.databind.DeserializationContext.mappingException(DeserializationContext.java:569)
	at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromArray(BeanDeserializerBase.java:1121)
	at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeOther(BeanDeserializer.java:148)
	at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:123)
	at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:2888)
	at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2034)
	at org.kohsuke.github.Requester.parse(Requester.java:539)
	... 13 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Once, 23 hours ago
3 times, 6 days ago
11 times, 1 week ago
2 times, 1 week ago
Once, 1 week ago
159 more bugmates