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
• 14,970 points

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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,120 points

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.