You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
botocore.errorfactory.BadRequestException: An error occurred (BadRequestException) when calling the StartMedicalScribeJob operation: The specified S3 bucket can't be accessed. Make sure you have write permissionon the bucket and try your request again.
My code is
`from future import print_function
import time
import boto3
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Complete error is:
botocore.errorfactory.BadRequestException: An error occurred (BadRequestException) when calling the StartMedicalScribeJob operation: The specified S3 bucket can't be accessed. Make sure you have write permissionon the bucket and try your request again.
My code is
`from future import print_function
import time
import boto3
job_name = "my-first-medical-scribe-job"
job_uri="s3://myBucket/myFile"
//File name has spaces in it
response=transcribe.start_medical_scribe_job(
MedicalScribeJobName =job_name,
Media={
'MediaFileUri': job_uri
},
OutputBucketName='same as above bucket',
"MaxSpeakerLabels":2
},
)
`
My role has admin access. I can upload the file on this bucket using;
`import boto3
s3 = boto3.resource('s3', 'us-east-1',aws_access_key_id="myAccessKey",aws_secret_access_key='mySecretAccessKey')
s3.meta.client.upload_file('LocalFile', 'myBucket','myFile')`
Documentation says that start_medical_scribe_job works in US East (N. Virginia) region. I have created the bucket in the same region as well
Beta Was this translation helpful? Give feedback.
All reactions