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

Invoking locally leads to an error. #13

Open
shahzeb1 opened this issue Nov 15, 2017 · 2 comments
Open

Invoking locally leads to an error. #13

shahzeb1 opened this issue Nov 15, 2017 · 2 comments

Comments

@shahzeb1
Copy link

Error:

{
    "errorMessage": "Missing AWS Lambda trace data for X-Ray. Expected _X_AMZN_TRACE_ID to be set.",
    "errorType": "Error"
}

Invoked by running: sls invoke local -f activateTrigger --path trigger.json

Is there any way to bypass tracing all together if it is invoked locally?

@alex-murashkin
Copy link
Owner

Hi @shahzeb1 .

Apologies for the delay. Unfortunately, local invocation is not a supported use case. However, collaborators are welcome!

@chris-feist
Copy link

Don't initialize x-ray if running locally. Ex:

if (process.env.IS_LOCAL !== 'true') {
  AWSXRay.captureAWS(AWS);
}

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

3 participants