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

Show a useful error message when no credentials file has been found #5

Open
longouyang opened this issue May 11, 2019 · 0 comments
Open

Comments

@longouyang
Copy link
Owner

Currently, we can partially run nosub upload without credentials but we eventually hit an uninformative timeout error:

Running on sandbox
How many assignments do you want to run?
> 3
How long do you want to run the HIT?
You can answer in seconds, minutes, hours, days, or weeks and you can always add more time using nosub add.
> 2 days
Cost will be $1.7999999999999998
(node:75915) UnhandledPromiseRejectionWarning: Error: connect ETIMEDOUT 169.254.169.254:80
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1097:14)
(node:75915) 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:75915) [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.

We should check for credentials earlier

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

1 participant