Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'X-Amzn-Trace-Id' of null #79

Closed
pyaesone17 opened this issue Nov 2, 2020 · 0 comments
Closed

Cannot read property 'X-Amzn-Trace-Id' of null #79

pyaesone17 opened this issue Nov 2, 2020 · 0 comments

Comments

@pyaesone17
Copy link

Expected Behavior

When logging error using console, it should log error.

Actual Behavior

Instead of logging actual error, it is causing trace-id issue.

Steps to Reproduce the Problem

  1. Throw the error
  2. and log the error using console

Specifications

  • Serverless Framework version:
  • Datadog Serverless Plugin version:
  • Lambda function runtime (Python 3.7, Node 10, etc.):

Stacktrace

Invoke Error	{"errorType":"TypeError","errorMessage":"Cannot read property 'X-Amzn-Trace-Id' of null","stack":["TypeError: Cannot read property 'X-Amzn-Trace-Id' of null","    at /var/task/serverless_sdk/index.js:9:87215","    at /opt/nodejs/node_modules/datadog-lambda-js/utils/handler.js:150:25","    at Object.<anonymous> (/opt/nodejs/node_modules/datadog-lambda-js/index.js:154:62)","    at step (/opt/nodejs/node_modules/datadog-lambda-js/index.js:44:23)","    at Object.next (/opt/nodejs/node_modules/datadog-lambda-js/index.js:25:53)","    at fulfilled (/opt/nodejs/node_modules/datadog-lambda-js/index.js:16:58)"]}  ```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant