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

preguntada hace 2 años231 visualizaciones
1 Respuesta
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
respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas