Posts

Showing posts with the label aws-sdk

AWS Rekognition Javascript SDK - UnknownError: Bad Request

AWS Rekognition Javascript SDK - UnknownError: Bad Request I am attempting to use AWS Rekognition API through the AWS Javascript SDK and am receiving UnknownError: Bad Request when I attempt to start any of their detections services. I want to run label detection, but have the same error while attempting the others, such as celebrity face detection. I have made sure that my account has access to the Rekognition API and made sure that my credentials are correct (or at least the same credentials work for S3 attached to the same account). UnknownError: Bad Request My Code var aws = require('aws-sdk'); const region = 's3-us-west-2'; const bucket = process.env.S3_VIDEO_BUCKET; var requesttoken = randString(10) //generates random string var key = 'path/to/key.mp4'; // used to check for keys to available files var service = new aws.S3({ accessKeyId: process.env.ACCESS_KEY, secretAccessKey: process.env.ACCESS_SECRET, region: region, endpoint: 'https://'...