Parser failed with error

0

Our parser written in NodeJS failed with the following error.

error in Cloudwatch

This error occurred at around the same time that a new release of the AWS SDK waS released. Could this be the cause of our error?

If yes, how can we make sure we do not face such a situation in the future?

If not, what else could be the issue?

P.S. let me know if I can provide further details

demandé il y a 2 ans231 vues
1 réponse
0

From the error, I understand that you are using a variable named 'aws' which is not declared in your code possibly. In case you are using AWS SDK for JavaScript, kindly ensure that you have declared the variable while performing any API operation. For example,

var aws = require("aws-sdk");

...

aws.config.update({region: 'REGION'});

var ddb = new aws.DynamoDB({apiVersion: '2012-08-10'});

Please note that the variables are case-sensitive.

As you have mentioned that this error occurred at the same time of new release AWS-SDK could you please confirm about the new version you are referring to?

AWS
répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions