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

TypeError: Cannot read property 'name' of undefined #13

Closed
Simonl07 opened this issue Jan 25, 2020 · 1 comment
Closed

TypeError: Cannot read property 'name' of undefined #13

Simonl07 opened this issue Jan 25, 2020 · 1 comment
Assignees

Comments

@Simonl07
Copy link
Contributor

Simonl07 commented Jan 25, 2020

One line summary of the issue here.

Cannot start with autohook -rs

Expected behavior

I stored my credentials in ~/.env.twitter, and ran autohook -rs but I am not able to start due to following errors:

Actual behavior

Getting webhooks…
Removing webhooks…
(node:25498) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'name' of undefined
    at /usr/local/share/.config/yarn/global/node_modules/twitter-autohook/cli.js:68:33
    at process._tickCallback (internal/process/next_tick.js:68:7)
(node:25498) 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:25498) [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.

Steps to reproduce the behavior

  1. Configure .env.twitter
  2. run autohook -rs

I have also tried to pass credentials by command line but the same error appears

@iamdaniele
Copy link
Contributor

@Simonl07 this should be resolved in v1.4.2, where you should get a more meaningful error message instead of the behavior you've experienced. Would you be able to get that version and confirm resolved?

@iamdaniele iamdaniele self-assigned this Feb 29, 2020
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