-
Notifications
You must be signed in to change notification settings - Fork 54
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
Request taking 20+ seconds to timeout #195
Comments
@abentley-technolog-ltd Good morning. Could you please share supporting data, including verbose logs, that support this issue to be potential regression? Verbose logs could be enabled using below statements: Amazon.AWSConfigs.LoggingConfig.LogResponses = Amazon.ResponseLoggingOption.Always;
Amazon.AWSConfigs.LoggingConfig.LogTo = Amazon.LoggingOptions.Console;
Amazon.AWSConfigs.AddTraceListener("Amazon", new System.Diagnostics.ConsoleTraceListener()); The Regarding IP address Thanks, |
Hi @ashishdhingra, Apologies, that should be of said version 6.2.2, not 5.2.2.
|
@abentley-technolog-ltd Thanks for the information. Could you please share the following:
Thanks, |
Yes, the production machines are not EC2's and are using Access keys. Thanks, |
@abentley-technolog-ltd Good morning. We might need the verbose logs to find the exact source of latency. Your network logs latency caused by IP address You may try using any of the below workarounds and see if it works for you (taken from aws/aws-sdk-net#2546):
Thanks, |
This issue has not received a response in 5 days. If you want to keep this issue open, please just leave a comment below and auto-close will be canceled. |
I have done an initial test and Thanks, |
Describe the bug
Hi,
We are experiencing an intermittent issue where the application fails to load within the expected time frame. The app should load in a couple of seconds, but on some machines, it takes anywhere from 30 to 90 seconds.
Using Fiddler, we traced the issue to the latest/api/token request to 169.254.169.254, which always results in a 502 Bad Gateway error. While the request completes in a few milliseconds on some machines, it takes up to 20+ seconds on others before the 502 error is returned.
Regression Issue
Expected Behavior
The request to latest/api/token should either complete successfully or fail quickly with an appropriate error, rather than taking a prolonged amount of time before failing.
The application should load within a few seconds, not 30-90 seconds, regardless of the machine.
Current Behavior
The latest/api/token request consistently fails with a 502 Bad Gateway error.
On some machines, the request takes a few milliseconds to fail, while on others, it takes 20-90 seconds before the 502 error is returned.
This delay in the request affects the overall application load time, causing significant performance issues.
Reproduction Steps
Launch the application.
Monitor the loading time of the app.
Use Fiddler or another network trace tool to track the request to latest/api/token.
Observe that the request always fails with a 502 Bad Gateway error.
On some machines, the request completes in a few milliseconds; on others, it takes 20+ seconds before failing.
Possible Solution
No response
Additional Information/Context
Slow.txt
Fast.txt
AWS .NET SDK and/or Package version used
Not Affected: Amazon.Extensions.Configuration.SystemsManager 5.0.2
Affected: Amazon.Extensions.Configuration.SystemsManager 5.1.0
Affected: Amazon.Extensions.Configuration.SystemsManager 6.2.2
Targeted .NET Platform
.NET8
Operating System and version
Windows 11
The text was updated successfully, but these errors were encountered: