rollbar / rollbar.js

Error tracking and logging from Javascript to Rollbar
https://docs.rollbar.com/docs/javascript
MIT License
566 stars 212 forks source link

RollbarJSON.parse is not a function (AWS Lambda) #1097

Open aslakhellesoy opened 1 year ago

aslakhellesoy commented 1 year ago

Hi there, we're using rollbar.lambdaHandler as described in https://docs.rollbar.com/docs/aws-lambda

When a lambda fails, the error gets logged to Rollbar correctly, however we're seeing STDERR errors in our CloudWatch logs like this:

2023-03-03T23:45:41.179Z    63338326-2dc5-4270-a1bc-54d555d7a03d    ERROR   Could not parse api response, err: TypeError: RollbarJSON.parse is not a function

I've looked at old issues, and wonder if this might be related to https://github.com/rollbar/rollbar.js/issues/887.

Environment:

aslakhellesoy commented 1 year ago

Hello - any update on this please?