Request hangs on missing credentials
See original GitHub issue- I’ve gone though Developer Guide and API reference
- I’ve checked AWS Forums and StackOverflow for answers
When I attempt to run request without an AWS credentials it just hangs infinitely.
I’d expect it to crash immediately with Missing credentials
error.
Why it’s not the case?
e.g. following will just hang if run without any AWS creds setup:
const { Lambda } = require('aws-sdk');
const lambda = new Lambda();
lambda
.invoke({ FunctionName: 'foo' })
.promise()
.then(
data => console.log('Success', data),
error => console.log('Error', data)
);
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:28 (13 by maintainers)
Top Results From Across the Web
Authentification fail in bad request : Missing Credentials
I'm working on a Passport Node.js, Express login page. I'm a Web Developer but this is my first Node.js project. I have followed...
Read more >Credentials are missing - Forum - Foglight - Quest Community
Hi,. I'm testing the foglight enterprise and in optimization gives an error "Failed - Credentials are missing". I create a lockbox and then...
Read more >Requesting temporary security credentials - AWS Identity and ...
To request temporary security credentials, you can use AWS Security Token Service (AWS STS) operations in the AWS API. These include operations to...
Read more >Troubleshooting cached login credentials in Google Chrome
Locate the saved password for the server you are connecting to. Click the X on the right side to remove the stored password....
Read more >How To Fix The Credential Prompt Error In Outlook 2016/2019 ...
Navigate to Control Panel > Credential Manager > Windows Credentials > Remove/delete any records with the users mailbox address. Download the ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@medikoo have you tried
connectTimeout
? That worked for me last time I checked this issueEDIT:
connectTimeout
, notconnectionTimeout
@ajredniwja
Regarding your statement:
I’m not sure if anyone has mentioned/encountered this, but when I run the SDK with invalid credentials a few times, it occasionally does error with
MissingCredentials
, but usually hangs. This definitely would classify as a bug to me, if the behaviour is inconsistent. It should either hang consistently or throw an error consistently.