-
Notifications
You must be signed in to change notification settings - Fork 109
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
mirrord crashes when process runs AWS STS Request #757
Comments
Your operating system and version:
Local process version:
|
I'm debugging this a bit more. It seems that it's not an aws-sdk specific issue. It seems that the first request "hangs" while the rest of them work. This even works if the first request is done to some other hostname. Not sure what's going on here. import { STSClient, GetCallerIdentityCommand } from '@aws-sdk/client-sts';
import { request } from 'https';
const createRequest = (name: string) => {
const req = request(
{
hostname: 'sts.amazonaws.com',
port: 443,
path: '/',
method: 'GET',
},
res => {
console.log(`request ${name} done!`);
},
);
req.end();
};
const main = async () => {
createRequest('first');
createRequest('second');
const stsClient = new STSClient({});
await stsClient.send(new GetCallerIdentityCommand({}));
console.log('aws sts done!');
};
main(); Logs
|
Might be related to #564? Not sure why I'm experiencing this issues even though the e2e test[1] should catch this? Edit: |
I had/have an assumption that it's a file that needs to be loaded remotely that we're not loading, not sure why the weird error though. |
Reading file seems to work fine. Looking at the source[1] and running just the |
I remember that in the trace you sent there was a read file contents just as same time as the SSL error, that's why I thought it might be the problem. |
Hey,
I think we might have fixed it with our last release, where we moved agent creation to the cli. |
@aviramha i can still recreate the issue on |
No I couldn't test it also on older version since "aarch" build was broken :( |
Closes #757 Co-authored-by: Aviram Hassan <[email protected]>
Closes #757 Co-authored-by: Aviram Hassan <[email protected]>
Closes #757 Co-authored-by: Aviram Hassan <[email protected]>
Closes #757 Co-authored-by: Aviram Hassan <[email protected]>
Closes #757 Co-authored-by: Aviram Hassan <[email protected]>
Bug Description
See description.
Steps to Reproduce
Gist, including logs and repro steps, here:
https://gist.github.com/mentos1386/749f2b60c57adbb201a610700b1a0066#file-repro-ts
Backtrace
No response
Relevant Logs
No response
Your operating system and version
TBD (some Linux)
Local process
npx
Local process version
No response
Additional Info
No response
The text was updated successfully, but these errors were encountered: