question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Request hangs on missing credentials

See original GitHub issue

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:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:28 (13 by maintainers)

github_iconTop GitHub Comments

2reactions
mhartcommented, Jul 28, 2020

@medikoo have you tried connectTimeout? That worked for me last time I checked this issue

EDIT: connectTimeout, not connectionTimeout

2reactions
leonavescommented, Apr 28, 2020

@ajredniwja

Regarding your statement:

I understand the concern there and it can be frustrating at times. I believe this is not necessarily a bug but the behavior of the SDK which can be enhanced. Hence would like to mark it as a feature request.

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found