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

Getting error while trying to use autohook to generate a webhook #16

Closed
Mikeac94 opened this issue Feb 26, 2020 · 3 comments
Closed

Getting error while trying to use autohook to generate a webhook #16

Mikeac94 opened this issue Feb 26, 2020 · 3 comments
Assignees

Comments

@Mikeac94
Copy link

While runnning the index.js file, I get this error ==>

Getting webhooks…
Removing webhooks…
Registering https://4d2a94bf.ngrok.io/webhook as a new webhook…
ReferenceError: URL is not defined
at setWebhook (/Users/mikeashleycedric/node_modules/twitter-autohook/index.js:169:20)
at Autohook.start (/Users/mikeashleycedric/node_modules/twitter-autohook/index.js:287:29)
at
at process._tickCallback (internal/process/next_tick.js:188:7)

@Mikeac94
Copy link
Author

@iamdaniele please add const URL = require('url').URL; in your index.js file
and in every file where you're using new URL() method;

@iamdaniele iamdaniele self-assigned this Feb 26, 2020
@iamdaniele
Copy link
Contributor

@Mikeac94 thank you. Looking into this right now.

@iamdaniele
Copy link
Contributor

@Mikeac94 this should be resolved in v1.4.2. Would you be able to get that version and confirm resolved?

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