GitHub => Jenkins : Not intended to be browsed interactively (must specify payload parameter)

853 views
Skip to first unread message

Eric L'Hostis

unread,
Jun 26, 2014, 5:06:27 AM6/26/14
to jenkin...@googlegroups.com
Hi,

I want to connect a job to GitHub.
I have this problem with the webhook of github : 

Caused by: java.lang.IllegalArgumentException: Not intended to be browsed interactively (must specify payload parameter)
	at com.cloudbees.jenkins.GitHubWebHook.doIndex(GitHubWebHook.java:154)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:622)
	at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298)
	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161)
	at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96)
	at org.kohsuke.stapler.MetaClass$2.dispatch(MetaClass.java:164)
	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
	... 62 more

I have read many link about that, but no solution.
Somebody know what's happend ?

Thanks.


Eric

Surya Gaddipati

unread,
Jun 27, 2014, 6:46:24 PM6/27/14
to jenkin...@googlegroups.com
put a '/'  in the end of githook url in github. That worked for me in for some strange reason.


On Thursday, June 26, 2014 4:06:27 AM UTC-5, Eric L'Hostis wrote:
Hi,

I want to connect a job to GitHub.
I ghave this problem with the webhook of github : 

Eric L'Hostis

unread,
Jul 4, 2014, 7:26:08 AM7/4/14
to jenkin...@googlegroups.com
Hi,

It does not work. The / was alreay here.

nicolas de loof

unread,
Jul 4, 2014, 1:17:45 PM7/4/14
to jenkin...@googlegroups.com
This error is expected, the webhook only work when used with github payload


2014-07-04 13:26 GMT+02:00 Eric L'Hostis <eric.l...@gmail.com>:
Hi,

It does not work. The / was alreay here.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

John Sherwood

unread,
Aug 12, 2014, 8:39:32 PM8/12/14
to jenkin...@googlegroups.com
I am getting this error from my github hook.  I've got a '/' at the end.

John Sherwood

unread,
Aug 12, 2014, 8:40:35 PM8/12/14
to jenkin...@googlegroups.com
My github hook url hasyhttp auth and is on port 81 if that makes any difference.

John Sherwood

unread,
Aug 12, 2014, 8:42:22 PM8/12/14
to jenkin...@googlegroups.com
The error message I'm getting is:

Caused by: java.lang.IllegalArgumentException: Not intended to be browsed interactively (must specify payload parameter). Make sure payload version is 'application/vnd.github+form'.

I see no way of making Github send this.

Mazyad Alabduljalil

unread,
Aug 22, 2014, 1:13:51 AM8/22/14
to jenkin...@googlegroups.com

I am facing the exact same issue.. The payload I am specifying is application/json. Will try the url-encoded, since I am out of ideas..

Mazyad Alabduljalil

unread,
Aug 22, 2014, 1:25:48 AM8/22/14
to jenkin...@googlegroups.com

Oh ........ That worked. Finally.

Wajid Baig

unread,
Dec 14, 2014, 3:31:12 PM12/14/14
to jenkin...@googlegroups.com
Hi Mazyad alabduljalil,

How did it work? What is the solution. Please help me by posting the solution.

thanks,
Ahmed

Mazyad Alabduljalil

unread,
Dec 14, 2014, 11:57:53 PM12/14/14
to jenkin...@googlegroups.com

Hi Ahmed,

I mentioned my solution in the post, it is to switch the payload type on github to url encoded.
Reply all
Reply to author
Forward
0 new messages