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

질문됨 2년 전231회 조회
1개 답변
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
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠