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,510 points
837 views

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
• 58,020 points

Related Questions In AWS

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP