-
Notifications
You must be signed in to change notification settings - Fork 543
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
Cannot read property 'byteLength' of undefined #2437
Comments
I'm facing the same issue with
which returns ERROR [TypeError: undefined is not an object (evaluating 'data.byteLength')] Any idea on what it might be? |
I'll go ahead and create a repo to reproduce this. |
Here is a minimal repo. |
Hi @ernestofgonzalez, thanks for opening this issue, can you check if you get the same error with the latest version of the SDK? I used the code: import { ElasticTranscoderClient, CreateJobCommand } from "@aws-sdk/client-elastic-transcoder";
(async ()=> {
const client: ElasticTranscoderClient =
new ElasticTranscoderClient({
region: "us-west-2",
});
const command: CreateJobCommand =
new CreateJobCommand({
PipelineId: "id-123",
Inputs: [
{
Key:
"video-to-pipe.mp4",
},
],
Outputs: [
{
Key: "key" + '/hls_1000k_',
PresetId: '1351620000001-200030',
SegmentDuration: '1',
ThumbnailPattern: '{resolution}_{count}',
},
],
});
try {
const data = await client.send(command);
console.log(data)
} catch (error) {
console.log(error)
} finally {
// finally.
}
})(); And I get httpStatusCode: 201 |
Hi @ajredniwja. Thanks for answering. Eventually I fixed it. I think it occurs when you don't have the required permissions to do the action you're requesting. I can't today, but I'll test it with |
This issue has not received a response in 1 week. If you still think there is a problem, please leave a comment to avoid the issue from automatically closing. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
Describe the bug
Your environment
SDK version number
Is the issue in the browser/Node.js/ReactNative?
Node.JS
Details of the browser/Node.js/ReactNative version
v14.16.1
Steps to reproduce
Observed behavior
Fails to login and provides error described in title see extended error below
Expected behavior
Login as intended without have to recreate the object with different key spelling
Additional context
The text was updated successfully, but these errors were encountered: