-
Notifications
You must be signed in to change notification settings - Fork 852
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
AWS SDK access key logins don't function under .net core 2.1 #932
Comments
I'm unable to capture the request under .net core 2.1, perhaps because no request is being issued. It may be failing the precheck before a request is issued, and there doesn't seem to be an easy way to see what exactly it's generating beforehand. |
@replaysMike Set environement appsetting See |
great suggestion! In code I set: Much thanks for finding that! |
@replaysMike I am going to keep this open because we would like to investigate why manged http handler fails to make requests to AWS. |
The issue is related to this GitHub issue https://github.com/dotnet/corefx/issues/28951 from the .NET repo. The basic issue is the user agent string is getting converted by the .NET HttpClient to be a comma delimited string which is different that was used when the SDK computed the signature. A fix was checked in and I confirmed from the daily builds that the AWS SDK is working again. I'm confirming on the issue that the change is going out with .NET Core 2.1 which I assume is the plan. |
I'm going to close this as I got confirmation that the issue is fixed for the next release prerelease of .NET Core 2.1 |
I spent quite a bit of time fighting this error after realizing it was only ocurring on .net core 2.1 projects - seems fine under .net core 2.0.
Expected Behavior
Authenticating for SQS services should accept valid access key credentials.
Current Behavior
An error is thrown, the dreaded:
The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method
Possible Solution
Only solution currently is to switch your project to .net core 2.0.
Steps to Reproduce (for bugs)
Using correct credentials, try connecting to the amazon api endpoints.
Context
Using the latest Amazon SQS client for .net when trying to
AmazonSQSClient.GetQueueUrlAsync()
the web services throws the following error:Your Environment
.NET Core Info
.Net core 2.1
The text was updated successfully, but these errors were encountered: