SageMakerRuntime: MissingAuthenticationTokenException

0 votes

When trying to access SageMakerRuntime -> invokeEndPoint method with Javascript and im getting this error:

  • MissingAuthenticationTokenException

The strange thing is when i access a random SageMaker method my code works.

Aug 30, 2018 in AWS by bug_seeker
• 15,360 points

1 answer to this question.

0 votes

Make sure you include AWS.Credentials when you create the AWS.SageMakerRuntime instance. So for example:

var creds = new AWS.Credentials({
    accessKeyId: 'your-string', 
    secretAccessKey: 'your-string'

var sagemakerruntime = new AWS.SageMakerRuntime({
    region: 'us-east-2', 
    credentials: creds

If it's not that, then I'm not sure what's the issue here.

answered Aug 30, 2018 by Priyaj
• 56,940 points

Related Questions In AWS