aws-solutions / video-on-demand-on-aws

An automated reference implementation leveraging AWS Step Functions and AWS Media Services to deploy a scalable fault tolerant Video on demand workflow
https://aws.amazon.com/solutions/video-on-demand-on-aws/
Apache License 2.0
502 stars 240 forks source link

<Error><Code>SignatureDoesNotMatch</Code><Message> #168

Closed danestves closed 1 year ago

danestves commented 1 year ago

Describe the bug

Getting <Error><Code>SignatureDoesNotMatch</Code><Message> and TypeError: 'NoneType' object is not subscriptable Traceback

To Reproduce

Install the latest version of the stack

Expected behavior

Process the media info lambda

Please complete the following information about the solution:

Screenshots

Additional context

N/A

danestves commented 1 year ago

After I make a little debug, it happens with a few videos but not with all, but I expect that all .mp4 videos are processed without any problem

cassneal commented 1 year ago

Anything unique about the ones where you receive the error?

danestves commented 1 year ago

Anything unique about the ones where you receive the error?

I saw that was because when trying to request the source in CloudFront after a few milliseconds that was created, sometimes it gives a 404 that doesn't found the source. After I add more retries to the steps functions, works like a charm

colin-oos commented 1 year ago

I am having this exact issue occur 100% of the time with all my videos I upload. However, this is only happening for me with one of my stacks that I deployed today. My other deployments / applications are running just fine using the same stack version 6.1.0 and there is nothing different about them other than they have different stack names. They are deployed in us-east-2

colin-oos commented 1 year ago

@danestves Adding more retries worked for me too. I changed from 6 to 12. While this is a nice workaround, I am still uneasy. How come this only happens on one of my stacks and does this mean every time I launch a new one I will have to increase the step retries? I launch a stack for every new tenant, so I could see this getting tedious. Perhaps a PR could be made.

Aishwarya4400 commented 1 year ago

Facing exact same error for .mp4 files as well image

Lambda function logs: MediaInfo

SignatureDoesNotMatchThe request signature we calculated does not match the signature you provided. Check your key and signing method.some-codeAWS4-HMAC-SHA256
dch90 commented 1 year ago

With the release of Video on Demand on AWS v6.1.3, this issue is now resolved. Thank you for everyone's feedback.