{"action":"created","issue":{"url":"https://api.github.com/repos/jenkinsci/gitlab-plugin/issues/337","repository_url":"https://api.github.com/repos/jenkinsci/gitlab-plugin","labels_url":"https://api.github.com/repos/jenkinsci/gitlab-plugin/issues/337/labels{/name}","comments_url":"https://api.github.com/repos/jenkinsci/gitlab-plugin/issues/337/comments","events_url":"https://api.github.com/repos/jenkinsci/gitlab-plugin/issues/337/events","html_url":"https://github.com/jenkinsci/gitlab-plugin/issues/337","id":157250921,"number":337,"title":"500 error from Gitlab on build status updates","user":{"login":"robbyb67","id":8514114,"avatar_url":"https://avatars.githubusercontent.com/u/8514114?v=3","gravatar_id":"","url":"https://api.github.com/users/robbyb67","html_url":"https://github.com/robbyb67","followers_url":"https://api.github.com/users/robbyb67/followers","following_url":"https://api.github.com/users/robbyb67/following{/other_user}","gists_url":"https://api.github.com/users/robbyb67/gists{/gist_id}","starred_url":"https://api.github.com/users/robbyb67/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robbyb67/subscriptions","organizations_url":"https://api.github.com/users/robbyb67/orgs","repos_url":"https://api.github.com/users/robbyb67/repos","events_url":"https://api.github.com/users/robbyb67/events{/privacy}","received_events_url":"https://api.github.com/users/robbyb67/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jenkinsci/gitlab-plugin/labels/verification-needed","name":"verification-needed","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-05-27T17:08:20Z","updated_at":"2016-06-21T13:08:22Z","closed_at":null,"body":"from gitlab-plugin log:\r\n\r\nCall GitLab:\r\nHTTP method: GET\r\n\r\nURL: http://kallisto/api/v3/projects/common%2Fmaven-parent/repository/commits/9aec637421a34bc267380e5b47f7d32b04ea4adf\r\nRequest headers: [\r\nAccept = [application/json],\r\nPRIVATE-TOKEN = [****FILTERED****]\r\n]\r\nMai 27, 2016 5:31:18 PM AM FEINSTEN com.dabsquared.gitlabjenkins.gitlab.GitLabClientBuilder\r\nGot response from GitLab:\r\nURL: http://kallisto/api/v3/projects/common%2Fmaven-parent/repository/commits/9aec637421a34bc267380e5b47f7d32b04ea4adf\r\nStatus: 500 Internal Server Error\r\nResponse headers: [\r\nConnection = [keep-alive],\r\nContent-Length = [48],\r\nContent-Type = [application/json; charset=utf-8],\r\nDate = [Fri, 27 May 2016 15:31:17 GMT],\r\nServer = [nginx],\r\nStatus = [500 Internal Server Error],\r\nX-Request-Id = [1ca846df-eb38-4c2f-bbb0-2feb96d54d54],\r\nX-Runtime = [0.780938]\r\n]\r\nResponse body: {\"status\":\"500\",\"error\":\"Internal Server Error\"}\r\n\r\nGitlab version: 8.8.2 (community edition)\r\nJenkins version: 2.6\r\ngitlab plugin version: 1.2.3"},"comment":{"url":"https://api.github.com/repos/jenkinsci/gitlab-plugin/issues/comments/227433840","html_url":"https://github.com/jenkinsci/gitlab-plugin/issues/337#issuecomment-227433840","issue_url":"https://api.github.com/repos/jenkinsci/gitlab-plugin/issues/337","id":227433840,"user":{"login":"coder-hugo","id":5196912,"avatar_url":"https://avatars.githubusercontent.com/u/5196912?v=3","gravatar_id":"","url":"https://api.github.com/users/coder-hugo","html_url":"https://github.com/coder-hugo","followers_url":"https://api.github.com/users/coder-hugo/followers","following_url":"https://api.github.com/users/coder-hugo/following{/other_user}","gists_url":"https://api.github.com/users/coder-hugo/gists{/gist_id}","starred_url":"https://api.github.com/users/coder-hugo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coder-hugo/subscriptions","organizations_url":"https://api.github.com/users/coder-hugo/orgs","repos_url":"https://api.github.com/users/coder-hugo/repos","events_url":"https://api.github.com/users/coder-hugo/events{/privacy}","received_events_url":"https://api.github.com/users/coder-hugo/received_events","type":"User","site_admin":false},"created_at":"2016-06-21T13:08:22Z","updated_at":"2016-06-21T13:08:22Z","body":"@sugi1987 I can't find a %2F with the production.log of robby67. Between the namespace and the project there is a /.\r\nAnd the plugin doesn't use a wrong endpoint. You can get a single project by its namespace + project_name (see [here](http://docs.gitlab.com/ce/api/projects.html#get-single-project)). The GitLab API is kind of a REST API and the repository and its commits are sub-resources of a project. Using a REST API you will be always able to retrieve sub-resources starting from the path of their parent resource.\r\nFor the plugin the only way to figure out the project_id without using URLs that contain a %2F would mean to retrieve the complete list of projects and compare their repo URL with the one configured in the jenkins job. Depending on the GitLab size this can take ages to find the project_id."}}
{"actor":{"display_login":"coder-hugo"}}