Question: Webhook address for Staticman at Heroku
See original GitHub issueWhat is the proper webhook address when I deploy Staticman at Heroku?
For the public instance the webhook was https://api.staticman.net/v1/webhook
For my instance I’m guessing https://spinningnumbers-staticmandev2.herokuapp.com/v1/webhook/
, but I’m getting a 404 not found error.
While moving to Heroku I deleted the public staticman collaborator and only have my robot as a collaborator.
2020-04-18T22:56:56.155851+00:00 heroku[router]: at=info method=POST path="/v1/webhook/" host=spinningnumbers-staticmandev2.herokuapp.com request_id=a8552a56-4182-415d-ba95-5cae432a7f07 fwd="140.82.115.241" dyno=web.1 connect=0ms service=6ms status=404 bytes=505 protocol=https
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Staticman at Heroku - Spinning Numbers
Notification emails from Staticman will have your email address. Webhook. A webhook is a way for two web programs to communicate via a...
Read more >App error - Official staticman api on Heroku. #332 - GitHub
When I try to send data to your API that works on Heroku, I get an "Application error" message just like in the...
Read more >App Webhooks | Heroku Dev Center
App webhooks enable you to receive notifications whenever particular changes are made to your Heroku app.
Read more >Adding Staticman Comments | Performance Matters
Adding static comments to a static blog using staticman. ... I'm unclear on the proper webhook address when I deploy Staticman at Heroku....
Read more >Getting started - Staticman
Welcome! These instructions walk you through deploying your own instance of Staticman and connecting it to your static site.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@travisdowns - I was clued in to the need for the webhook by this post from @gabeluci. The easy instructions are at the mother ship. The intro doesn’t mention notifications getting triggered, but they do. The url for the webhook changes from
https://api.staticman.net/v1/webhook
tohttps://yourAppName.herokuapp.com/v1/webhook
, with no/
at the end!I’m working on my own exhaustive deployment instructions. I will link them here when they are ready.
Solved… I removed the trailing
/
from the webhook URL. Changedv1/webhook/
tov1/webhook
and the not-found problem cleared up. This mailhook provides two services: It deletes unneeded branches and it launches a notification email to people who have subscribed. This second feature isn’t (yet) mentioned in the Staticman documentation for webhooks. Thanks to @travisdowns for spotting the flaw.