mirror of
https://github.com/joelwmale/webhook-action.git
synced 2026-06-12 10:45:58 -05:00
[GH-ISSUE #385] Request failed with status code undefined #722
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @arnaudoff on GitHub (Jan 30, 2022).
Original GitHub issue: https://github.com/joelwmale/webhook-action/issues/385
Hi, I'm getting the following error:
Run joelwmale/webhook-action@fd99bb3b82
Sending webhook request to ***
Error: Received status code: undefined
(node:2044) UnhandledPromiseRejectionWarning: Error: Request failed with status code: undefined
at error (/home/runner/work/_actions/joelwmale/webhook-action/fd99bb3b8272237103e349e9bb4d9b0ead9a217c/dist/main.js:92:11)
at /home/runner/work/_actions/joelwmale/webhook-action/fd99bb3b8272237103e349e9bb4d9b0ead9a217c/dist/main.js:83:17
at processTicksAndRejections (internal/process/task_queues.js:93:
This is my config:
The url is in the form
http://<ip>:<port>/hooks/<name of hook>. I tried withouthttp://prefix, still doesnt work. What's wrong and is there an easy way to debug it? I don't understand anything from this message. Did the request fail, or it passed but HTTP error code was returned? Is there something wrong in the setup?Thanks in advance.
@natlibfi-jonollil commented on GitHub (Oct 31, 2022):
I had same.
Got is fixed by returning
res.status(200).json({status:200});in express.js@joelwmale commented on GitHub (Nov 10, 2022):
This is now fixed in v2.3.2.