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

UnhandledPromiseRejectionWarning: TypeError: text is not iterable #13

Closed
knarf180 opened this issue Dec 19, 2018 · 2 comments
Closed

UnhandledPromiseRejectionWarning: TypeError: text is not iterable #13

knarf180 opened this issue Dec 19, 2018 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@knarf180
Copy link

The checkForPassword() function attempts to submit a password stored in process.env.AMAZON_PASSWORD.

However, if the password was supplied through a command line argument (--password=) rather than an environmental variable, process.env.AMAZON_PASSWORD will be null. This is causing the script the crash with the error UnhandledPromiseRejectionWarning: TypeError: text is not iterable

@jpchip jpchip self-assigned this Dec 19, 2018
@jpchip jpchip added the bug Something isn't working label Dec 19, 2018
@jpchip
Copy link
Owner

jpchip commented Dec 19, 2018

Thanks for catching this. On it!

@jpchip
Copy link
Owner

jpchip commented Dec 19, 2018

Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants