Skip to content

API Gateway v1 protocol causes 500 response from API gateway (possible regression in 3.46.0) #162

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

Closed
jamestelfer opened this issue Feb 5, 2021 · 2 comments

Comments

@jamestelfer
Copy link

Expected Behaviour

Given an API Gateway integration with the v1 protocol in use, a simple Lambda function should return 200 OK on a valid route.

Actual Behaviour

API gateway returned 500. With no change to any other configuration, changing the API Gateway to use protocol version 2 fixed the issue.

Using the function handler directly (without Datadog), the same function code responds with 200 OK for both protocol versions.

Steps to Reproduce the Problem

  1. Create a Lambda with the following handler code:
    module.exports.handler = async event => {
      return {
          "isBase64Encoded": false,
          "statusCode": 200,
          "headers": { "Content-Type": "application/json" },
          "multiValueHeaders": { },
          "body": "{}"
      }
    }
  2. Configure the Lambda with the v3.46.0 layer, and the appropriate handler and environment config.
  3. Connect the created Lambda to an HTTP API Gateway with the integration configured to use protocol version 1.

Specifications

  • Datadog Lambda Layer version: 3.46.0
  • Node version: 12

Workaround

Downgrade the layer to the previous release (v3.44.0)

@DylanLovesCoffee
Copy link
Contributor

Hey @jamestelfer thanks for letting us know . We're looking into the issue and we'll keep you posted on what we find.

@DylanLovesCoffee
Copy link
Contributor

@jamestelfer thanks again for raising this. It should be fixed now with release v3.48.0. I'll close the issue out but let us know if you run into anything!

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

2 participants