tag:help.appveyor.com,2012-11-13:/discussions/problems/1627-github-webhook-failed-to-deliver-to-appveyorAppVeyor: Discussion 2016-08-11T02:26:28Ztag:help.appveyor.com,2012-11-13:Comment/361005532015-02-20T19:13:00Z2015-02-20T19:13:00ZGithub webhook failed to deliver to AppVeyor<div><p>OK, could you try creating commit status for that commit using
Postman or Fiddler to see what's going on: <a href=
"https://developer.github.com/v3/repos/statuses/#create-a-status">https://developer.github.com/v3/repos/statuses/#create-a-status</a>
?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/361005532015-02-20T20:55:53Z2015-02-20T20:55:53ZGithub webhook failed to deliver to AppVeyor<div><p>It works. I got a 201 response when I posted to
<code>https://api.github.com/repos/code-cracker/code-cracker/statuses/791cf00c5e6ac1fc09e88be9c4d207df38a86432</code>.</p>
<p>Body:</p>
<pre>
<code>{
"url": "https://api.github.com/repos/code-cracker/code-cracker/statuses/791cf00c5e6ac1fc09e88be9c4d207df38a86432",
"id": 170607927,
"state": "success",
"description": "The build succeeded!",
"target_url": "https://example.com/build/status",
"context": "continuous-integration/jenkins",
"required": false,
"created_at": "2015-02-20T20:53:10Z",
"updated_at": "2015-02-20T20:53:10Z",
"creator": {
"login": "giggio",
"id": 334958,
"avatar_url": "https://avatars.githubusercontent.com/u/334958?v=3",
"gravatar_id": "",
"url": "https://api.github.com/users/giggio",
"html_url": "https://github.com/giggio",
"followers_url": "https://api.github.com/users/giggio/followers",
"following_url": "https://api.github.com/users/giggio/following{/other_user}",
"gists_url": "https://api.github.com/users/giggio/gists{/gist_id}",
"starred_url": "https://api.github.com/users/giggio/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/giggio/subscriptions",
"organizations_url": "https://api.github.com/users/giggio/orgs",
"repos_url": "https://api.github.com/users/giggio/repos",
"events_url": "https://api.github.com/users/giggio/events{/privacy}",
"received_events_url": "https://api.github.com/users/giggio/received_events",
"type": "User",
"site_admin": false
}
}</code>
</pre>
<p>But nothing changed on <a href=
"https://github.com/code-cracker/code-cracker/commit/791cf00c5e6ac1fc09e88be9c4d207df38a86432">
https://github.com/code-cracker/code-cracker/commit/791cf00c5e6ac1f...</a>.
Should we see the status reported there?</p></div>giggiotag:help.appveyor.com,2012-11-13:Comment/361005532015-02-20T21:03:37Z2015-02-20T21:03:37ZGithub webhook failed to deliver to AppVeyor<div><p>The status is shown here: <a href=
"https://github.com/code-cracker/code-cracker/pull/283">https://github.com/code-cracker/code-cracker/pull/283</a></p>
<p>If AppVeyor got 404 while doing the same that could mean it
didn't have enough permissions to do that. GitHub always gives 404
instead of 403.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/361005532015-02-20T21:06:02Z2015-02-20T21:06:02ZGithub webhook failed to deliver to AppVeyor<div><p>Would you like doing the same with OAuth token for your account
that AppVeyor currently has? I can email token to you or run
request for you.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/361005532015-02-20T21:07:52Z2015-02-20T21:07:52ZGithub webhook failed to deliver to AppVeyor<div><p>Sure, just send it over.</p></div>giggiotag:help.appveyor.com,2012-11-13:Comment/361005532015-02-20T21:09:05Z2015-02-20T21:09:05ZGithub webhook failed to deliver to AppVeyor<div><p>I can work with you to try to find the problem. We can chat on
skype, jabbr, whatever.</p></div>giggiotag:help.appveyor.com,2012-11-13:Comment/361005532015-02-20T21:49:41Z2015-02-20T21:49:41ZGithub webhook failed to deliver to AppVeyor<div><p>OK, with OAuth token on your AppVeyor account I got 404 - see
attached. URL seems to be correct, request as well. So, this could
be like permissions problem.</p>
<p>Try re-authorizing GitHub in AppVeyor to see if that helps.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/361005532015-02-20T22:36:03Z2015-02-20T22:36:03ZGithub webhook failed to deliver to AppVeyor<div><p>I revoked access to Github and granted it again. Still, same
problem.</p></div>giggiotag:help.appveyor.com,2012-11-13:Comment/361005532015-02-20T22:54:54Z2015-02-20T22:54:54ZGithub webhook failed to deliver to AppVeyor<div><p>OK, try issuing "Personal Access Token" with the same scope
(<code>read:org,admin:repo_hook,repo:status</code>) and post status
with it.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/361005532015-02-20T23:14:09Z2015-02-20T23:14:09ZGithub webhook failed to deliver to AppVeyor<div><p>That's interesting to note that the commit itself exists in base
repo: <a href=
"https://api.github.com/repos/code-cracker/code-cracker/commits/791cf00c5e6ac1fc09e88be9c4d207df38a86432">
https://api.github.com/repos/code-cracker/code-cracker/commits/791c...</a>
however related PR is non-mergeable. So, technically that commit
still belongs to jwooley's repository: <a href=
"https://github.com/jwooley/code-cracker/commit/791cf00c5e6ac1fc09e88be9c4d207df38a86432">
https://github.com/jwooley/code-cracker/commit/791cf00c5e6ac1fc09e8...</a></p>
<p>What GitHub username do you use to authorize AppVeyor?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/361005532015-02-20T23:15:46Z2015-02-20T23:15:46ZGithub webhook failed to deliver to AppVeyor<div><p>Btw, if you will be able to add commit status with generated
Personal Access Token I can put it into your account to try from
AV.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/361005532015-02-20T23:29:24Z2015-02-20T23:29:24ZGithub webhook failed to deliver to AppVeyor<div><p>The user is <a href=
"https://github.com/codecrackerbuild">https://github.com/codecrackerbuild</a><br>
It did not have write access to <a href=
"https://github.com/code-cracker/code-cracker/">https://github.com/code-cracker/code-cracker/</a>.
So I fixed that. It does now. I redelivered the notification, and
it worked. It failed as non-mergeable, but that is ok.</p>
<p>Is this notification new? I had never seen it before.</p></div>giggiotag:help.appveyor.com,2012-11-13:Comment/361005532015-02-20T23:32:51Z2015-02-20T23:32:51ZGithub webhook failed to deliver to AppVeyor<div><p>It's been there for a while, you know.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/361005532015-02-20T23:41:31Z2015-02-20T23:41:31ZGithub webhook failed to deliver to AppVeyor<div><p>Strange. Several PR builds worked before, and I had never seen
the notification. I am guessing it failed because it was not
mergeable.<br>
I searched the deliveries log, and found other PRs failing as well.
Probably it is only failing the delivery when it is not mergeable,
and other deliveries (build failure, success, etc) are failing
silently. Maybe you could warn that this is hapenning so we can fix
it. I actually ended up making my own notification system because I
did not know this one existed.</p></div>giggiotag:help.appveyor.com,2012-11-13:Comment/361005532015-02-20T23:46:00Z2015-02-20T23:46:00ZGithub webhook failed to deliver to AppVeyor<div><p>Yes, AppVeyor puts that message for non-mergeable PRs only.</p></div>Feodor Fitsner