Skip to content
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

Null in api call: api/v3/projects/null/merge_requests/2/notes #22

Closed
styx opened this issue Aug 14, 2013 · 4 comments
Closed

Null in api call: api/v3/projects/null/merge_requests/2/notes #22

styx opened this issue Aug 14, 2013 · 4 comments

Comments

@styx
Copy link

styx commented Aug 14, 2013

I'm getting such an error:

Aug 14, 2013 9:50:05 AM hudson.triggers.Trigger checkTriggers
WARNING: org.jenkinsci.plugins.gitlab.GitlabBuildTrigger.run() failed for webschool_specs
java.lang.Error: java.io.FileNotFoundException: http://gitlab.****.be/api/v3/projects/null/merge_requests/2/notes?private_token=H9***qq
        at org.gitlab.api.http.GitlabHTTPRequestor$1.fetch(GitlabHTTPRequestor.java:195)
        at org.gitlab.api.http.GitlabHTTPRequestor$1.hasNext(GitlabHTTPRequestor.java:150)
        at org.gitlab.api.GitlabAPI.getAllNotes(GitlabAPI.java:166)
        at org.jenkinsci.plugins.gitlab.GitlabMergeRequestWrapper.getJenkinsNote(GitlabMergeRequestWrapper.java:75)
        at org.jenkinsci.plugins.gitlab.GitlabMergeRequestWrapper.check(GitlabMergeRequestWrapper.java:54)
        at org.jenkinsci.plugins.gitlab.GitlabRepository.check(GitlabRepository.java:83)
        at org.jenkinsci.plugins.gitlab.GitlabRepository.check(GitlabRepository.java:65)
        at org.jenkinsci.plugins.gitlab.GitlabMergeRequestBuilder.run(GitlabMergeRequestBuilder.java:27)
        at org.jenkinsci.plugins.gitlab.GitlabBuildTrigger.run(GitlabBuildTrigger.java:95)
        at hudson.triggers.Trigger.checkTriggers(Trigger.java:261)
        at hudson.triggers.Trigger$Cron.doRun(Trigger.java:209)
        at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
        at java.util.TimerThread.mainLoop(Timer.java:534)
        at java.util.TimerThread.run(Timer.java:484)
Caused by: java.io.FileNotFoundException: http://gitlab.***.be/api/v3/projects/null/merge_requests/2/notes?private_token=H9***qq
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1401)
        at org.gitlab.api.http.GitlabHTTPRequestor.parse(GitlabHTTPRequestor.java:260)
        at org.gitlab.api.http.GitlabHTTPRequestor.access$200(GitlabHTTPRequestor.java:31)
        at org.gitlab.api.http.GitlabHTTPRequestor$1.fetch(GitlabHTTPRequestor.java:188)
        ... 13 more

I see there is null instead of 1 after projects/. Is this a bug or I missed something? Help is highly appreciated.

@styx
Copy link
Author

styx commented Aug 18, 2013

Heh, it's a pity that author doesn't have time for comments. Will be using another solution by then.

@johnlinvc
Copy link

Hi, I've got the same issue here. I guess it's about gitlab 6 compatibility .

@Ebolon
Copy link
Contributor

Ebolon commented Aug 30, 2013

It's a bug in GitLab should be fixed in next release.

gitlabhq/gitlabhq#4916

@timols
Copy link
Owner

timols commented Sep 1, 2013

Thanks @Ebolon. I think thats right. Apologies for not responding right away - have been overseas/traveling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants