Error with triggering webhook
See original GitHub issueSince v2, I’m getting an error triggering webhooks. The webhook is a long Caprover URL that looks like this, and is stored as a secret in the GitHub repository:
This is the error:
Run joelwmale/webhook-action@master
with:
env:
WEBHOOK_URL: ***
data: Trigger
Sending webhook request to
(node:2606) UnhandledPromiseRejectionWarning: TypeError: Only absolute URLs are supported
at getNodeRequestOptions (/home/runner/work/_actions/joelwmale/webhook-action/master/node_modules/node-fetch/lib/index.js:1299:9)
at /home/runner/work/_actions/joelwmale/webhook-action/master/node_modules/node-fetch/lib/index.js:1404:19
at new Promise (<anonymous>)
at fetch (/home/runner/work/_actions/joelwmale/webhook-action/master/node_modules/node-fetch/lib/index.js:1401:9)
at /home/runner/work/_actions/joelwmale/webhook-action/master/dist/http.js:11:13
at new Promise (<anonymous>)
at Http.make (/home/runner/work/_actions/joelwmale/webhook-action/master/dist/http.js:10:16)
at /home/runner/work/_actions/joelwmale/webhook-action/master/dist/main.js:51:25
at step (/home/runner/work/_actions/joelwmale/webhook-action/master/dist/main.js:33:23)
at Object.next (/home/runner/work/_actions/joelwmale/webhook-action/master/dist/main.js:14:53)
(node:2606) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:2606) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
This is the configuration:
# ...
- name: Trigger webhook
uses: joelwmale/webhook-action@master
env:
WEBHOOK_URL: ${{ secrets.BUILD_WEBHOOK }}
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (12 by maintainers)
Top Results From Across the Web
Common Problems with Webhooks - Zapier Help
If the Zap receives an invalid payload, it may be ignored and the Zap may fail to trigger. Zapier can accept payloads that...
Read more >Error after Configuring WebHook and Triggering an event
We have configured a Web Hook (Service Hook) to trigger an event in Openshift upon performing a push in TFS Repo. But we...
Read more >Failed to trigger webhooks messages - Progress Community
Webhooks fails to generate alerts to IFTTT, teams or slack or any other such source with error message. For slack: "Failed to post...
Read more >Unable to Get Automated Webhook to Trigger - FME Community
It is not possible to trigger a webhook without including a message, you'll receive a 500 Internal Server Error reporting 'an unhandled ...
Read more >Error with webhook triggers on Self-hosted Ghost
Hi! I've deployed an instance of Ghost for publishing my articles, thoughts and other stuff, and I'm trying to configure some triggers to ......
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
@AnandChowdhary @Evanfeenstra @ok200paul When your workflow pulls the latest version (if you have it set to @master) it will work once more. If you are targetting a release @2.0.0, please update this to @2.0.1.
Thanks for the feedback & help guys.
@AnandChowdhary Great. Left a small comment on the PR for you.
@Evanfeenstra @ok200paul Can you guys please use
with
or continue usingenv
after the PR is released? I’m closing this now and will continue discussions on the PR. Thanks for the help @AnandChowdhary!