Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when setting up webhooks #2

Open
DanielTheGeek opened this issue Aug 22, 2020 · 1 comment
Open

Error when setting up webhooks #2

DanielTheGeek opened this issue Aug 22, 2020 · 1 comment

Comments

@DanielTheGeek
Copy link

I'm having an issue setting up webhooks using the Paystack CLI. It returns an error anytime I run webhook ping --event transfer.success --domain test

Here's the response:
The response:
Sending sample transfer.success event payload to null (node:7272) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'status' of undefined at C:\Users\Oreoluwa\AppData\Roaming\npm\node_modules\@paystack-oss\dev-cli\lib\Paystack.js:135:38 at processTicksAndRejections (internal/process/task_queues.js:93:5) (Use node --trace-warnings ...to show where the warning was created) (node:7272) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag--unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 3) (node:7272) [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.

@edwardsmoses
Copy link

edwardsmoses commented Nov 12, 2020

First, you've to tunnel your test events to your local server running on a port.

Assuming your port Is 8080, you could try running
webhook --domain test listen localhost:8000.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants