-
Notifications
You must be signed in to change notification settings - Fork 20
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
Detect API Gateway errors #347
Comments
I put together an idea on how you might address this: |
@jeffggardner Great--thanks for supplying this! Would you mind making it a PR against this repo? The only thing that jumps out as a potential integration issue is that the change to the package name would interfere with our tooling. But I'll pull this down and run some tests. Thank you! |
PR submitted and I fixed the package name :) |
@jeffggardner Another option is that the Python agent provides an Edit: Accidentally closed the issue when commenting. Re-opened. |
@mrickard I'm under a bit of a time crunch so my plan is to deploy my changes to our private repos and to at least keep moving forward unless you think my recommendation is something you feel could be implemented in the next week or so. LMK |
@jeffggardner We're looking at leveraging our event-info plugin for customizable responses. Since you're under a time crunch, I'd suggest keep moving forward on your side, and we'll keep you updated with progress on our side. |
Description
When using the "Lambda Proxy Integration" of AWS API Gateway, the lambda must return a response per this document: https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-lambda-proxy-integrations.html#api-gateway-simple-proxy-for-lambda-output-format
So instead of throwing an error or calling
context.fail(err);
our lambdas return a response like:Unfortunately, iopipe reports errors in our process as successful transactions as it is expecting to trap an error or for
context.fail(err);
to be thrown.Steps to reproduce the issue:
Describe the results you received:
While the transactions appear in iopipe, they are not recognized as errors.
Describe the results you expected:
I would like to see them as errors.
p.s. I have filed issues in other iopipe repos but I will close them if needed
Additional information you deem important (e.g. issue happens only occasionally):
The text was updated successfully, but these errors were encountered: