Skip to content

Failed to read the 'signal' property from 'RequestInit': Failed to convert value to 'AbortSignal'. #3854

Discussion options

You must be logged in to vote

Hi @ZengTianShengZ, thanks for reaching out. Could you please provide more details for when this error occurs?, does it happen when running the example above?. In my example below I did not get any issues:

import {S3Client, PutObjectCommand} from "@aws-sdk/client-s3";
import {AbortController} from "@aws-sdk/abort-controller";
import {fromIni} from "@aws-sdk/credential-providers";

const abortController = new AbortController();
const client = new S3Client({
    region: 'us-east-2',
    credentials: fromIni({profile: 'default'})
});
const command = new PutObjectCommand({
    Bucket: 'herrergy-sample-bucket',
    Key: 'herrergy-sample-new-key.txt',
    Body: '#'.repeat(1024 * 1024)
});
const r…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@ZengTianShengZ
Comment options

@yenfryherrerafeliz
Comment options

Answer selected by yenfryherrerafeliz
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants