question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MediaInfo can't get the Object Key and throwing a signing method error

See original GitHub issue

Hi,

I’m not sure what’s going on but i keep getting this error while executing the mediaInfo Lambda Function. <Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><AWSAccessKeyId>********************</AWSAccessKeyId><StringToSign>AWS4-HMAC-SHA256

which fails the function while trying to retrieve the uploaded file info with a null exception

[ERROR] TypeError: 'NoneType' object is not subscriptable Traceback (most recent call last): File "/var/task/lambda_function.py", line 157, in lambda_handler raise err File "/var/task/lambda_function.py", line 124, in lambda_handler tracks = json_content['media']['track']

I tried different filenames and extensions .mp4, .mov but i always get the same error any help is appreciated

Thanks, -Kader

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:19 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
tomnightcommented, Apr 3, 2020

Thanks for the feedback, we’ve seen the same symptoms and at this point need to engage with the service team to see if we can figure out whats causing this. Thanks for the feedback and you patience.

1reaction
rares-lupascucommented, Apr 10, 2020

so i think i got it to work doing the following in that same file (lambda_function.py) after the imports i added AWS_REGION = os.getenv(‘AWS_DEFAULT_REGION’, ‘eu-west-1’)

in def get_signed_url(bucket, obj): // line 102 i changed s3_client = boto3.client(‘s3’) to s3_client = boto3.client(‘s3’, endpoint_url=f’https://s3.{AWS_REGION}.amazonaws.com’, region_name=AWS_REGION)

then zip the function, upload, choose Python 3.7 … btw 3.8 does not work for me

Read more comments on GitHub >

github_iconTop Results From Across the Web

MediaInfo can't get the Object Key and throwing a signing ...
Hi, I'm not sure what's going on but i keep getting this error while executing the mediaInfo Lambda Function.
Read more >
Mediainfo does not handle AWS S3 url with special characters ...
I have found workaround for my problem, which is to use pre-signed url. Following are the commands I have used:
Read more >
Source: streaming/protection/controllers/ProtectionController.js
mediaInfo ) { throw new Error('mediaInfo can not be null or undefined'); } ... objects have been added to our mediaInfoArray we can...
Read more >
Class: CastReceiverContext - Google Developers
Manages loading of underlying libraries and initializes underlying cast receiver SDK. Throws. non-null Error If MediaElement is not created ...
Read more >
Display Error Messages Plugin
Use a custom plugin: This will alter all instances of the player. You CANNOT customize errors by altering the player configuration. Get started....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found