Closed ffxsam closed 2 years ago
Hi @ffxsam 👋 thanks for raising this issue. Wanted to follow up and ask if you've been able to consistently reproduce this yet or still experiencing the issue and have gathered any more information that might help us reproduce this?
Hey @chrisbonifacio! It might've been possible that the user was using an older, cached version of our application. I'm not entirely sure. But I decided to play it safe and just base64-encode the originalFilename
property anyway, and this hasn't been an issue since.
Glad to hear it hasn't been an issue!
Thanks for letting us know what worked for you in case anyone else runs into this issue intermittently as well.
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.
Looking for a help forum? We recommend joining the Amplify Community Discord server amplify-help
forum.
Before opening, please confirm:
JavaScript Framework
Vue
Amplify APIs
Authentication
Amplify Categories
No response
Environment information
Describe the bug
Sometimes our customers get an error because a Lambda call was unable to complete successfully. We're seeing an
InvalidSignatureException
with the following message:The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.
I confirmed that the user's computer clock isn't off, which is sometimes the cause of this error, at least with S3 uploads. The strange part is, that the user had no problem invoking the Lambda function at one point, but then 20 minutes later, the same calls failed. The only thing that stood out to me was that the later invocations that failed had a payload that included accented characters (é), though, in my own testing, that's never been an issue. I'm even stripping non-printable characters just to be safe:
Expected behavior
I would expect Amplify to generate a correct signature.
Reproduction steps
Sporadic error, can't replicate at the moment.
Code Snippet
Log output
Request headers:
Request body:
Response headers:
Response body:
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response