Webhook not posting anything through Cloudflare WAF
I've got a webhook setup, and a notification hook. For whatever reason, it's not actually doing anything at all.
What am I doing wrong?
deploy:
- provider: Webhook
url: https://domain.com/api/push_build
authorization:
secure: wzN3/0mMzFM6sEayzxF2NQ==
on_build_success: true
on_build_failure: true
notifications:
- provider: Webhook
url: https://domain.com/api/push_build
on_build_success: true
on_build_failure: true
on_build_status_changed: true
It event says "OK" during the build process.
Discovering tests...OK
Packaging artifacts...OK
Uploading artifact blah.exe (16.4 MB)...OK
Deploying using Webhook provider
Calling webhook https://domain.comk/api/push_build...OK
Build success
I'm not getting any requests in my access log, so it's definitely not even hitting my server.
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac

Support Staff 1 Posted by Feodor Fitsner on 03 Jul, 2015 10:14 PM
on_build_status_changed: truemight be the key - it's called when build status changes from failed to success or success to failed. Remove it.2 Posted by darkcode on 03 Jul, 2015 10:41 PM
Thanks Feodor Fitsner, sadly that didn't work. Still not getting any notifications to my rest api.
Support Staff 3 Posted by Feodor Fitsner on 03 Jul, 2015 10:45 PM
What do you get a build log?
4 Posted by darkcode on 03 Jul, 2015 10:48 PM
https://ci.appveyor.com/project/emoose/eldorito/build/0.4.7.155
Support Staff 5 Posted by Feodor Fitsner on 03 Jul, 2015 10:52 PM
Have you tried testing with http://requestb.in/?
6 Posted by darkcode on 03 Jul, 2015 11:05 PM
Wow, looks like that worked. For some reason Cloudflare is blocking you access to my origin server.
Do you have a list of IP's I can whitelist? Do they only come from 138.91.141.243?
Support Staff 7 Posted by Feodor Fitsner on 03 Jul, 2015 11:09 PM
Here you go: http://www.appveyor.com/docs/build-configuration#build-environment
8 Posted by darkcode on 03 Jul, 2015 11:12 PM
Perfect, Problem solved, that was the issue! Thanks!
9 Posted by darkcode on 04 Jul, 2015 02:56 AM
Well, it seems like it was a lucky shot.. For some reason my latest build didn't get sent through the WebHook... Ugh!
Support Staff 10 Posted by Feodor Fitsner on 04 Jul, 2015 03:00 AM
Your builds are running on a new environment. Make sure you've added 75.126.44.186 to the firewall. I'm going to add this IP to docs.
11 Posted by darkcode on 04 Jul, 2015 02:17 PM
Added to WAF, thanks.
Also - I noticed when we break builds, i don't get a webhook.
https://ci.appveyor.com/project/emoose/eldorito/build/0.4.7.167
EDIT:
Uh, so sometimes it does the notification and deploy, and sometimes I just get the deploy hook, and sometimes it does nothing at all.
Support Staff 12 Posted by Feodor Fitsner on 04 Jul, 2015 10:59 PM
Deployment is not called on failed builds.
I think you should leave
notificationsonly. You can also define headers there like:13 Posted by darkcode on 06 Jul, 2015 12:55 AM
Hmm, when I try to download the exe from the url i'm getting the following:
{"message":"Artifact not found or access denied."}That's even with the most recent builds. What's the deal?
Support Staff 14 Posted by Feodor Fitsner on 06 Jul, 2015 01:50 AM
Artifact URL expires in 60 minutes. If you need download them after that time use API with authentication: http://www.appveyor.com/docs/api/samples/download-artifacts-ps
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:57 AM.