question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question: Webhook address for Staticman at Heroku

See original GitHub issue

What 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:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
willymcallistercommented, Apr 20, 2020

@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 to https://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.

1reaction
willymcallistercommented, Apr 20, 2020

Solved… I removed the trailing / from the webhook URL. Changed v1/webhook/ to v1/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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found