+
Skip to content

UnhandledPromiseRejectionWarning: Error: Request failed with status code: undefined #124

@ramyaramdasan

Description

@ramyaramdasan

Hi @joelwmale,

I tried to add the WebHook Action to my GitHub Workflow to send notifications to an MS Teams Channel using webhook. However, I am receiving the following error:

Run joelwmale/webhook-action@master
Sending webhook request to ***
Error: Received status code: 400
Error: Received status code: undefined
(node:2807) UnhandledPromiseRejectionWarning: Error: Request failed with status code: undefined
at error (/home/runner/work/_actions/joelwmale/webhook-action/master/dist/main.js:72:11)
at /home/runner/work/_actions/joelwmale/webhook-action/master/dist/main.js:64:17
at processTicksAndRejections (internal/process/task_queues.js:93:5)
(node:2807) 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: 1)
(node:2807) [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.

Can you please provide some help in fixing it?

Thanks
Ramya

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载