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

Sourcemaps upload fail with 502 using chunked transfers #1425

Open
ci opened this issue Jan 8, 2025 · 0 comments
Open

Sourcemaps upload fail with 502 using chunked transfers #1425

ci opened this issue Jan 8, 2025 · 0 comments

Comments

@ci
Copy link

ci commented Jan 8, 2025

What are the steps to reproduce this issue?

Use the example curl from https://docs.honeybadger.io/api/reporting-source-maps/#overview with the added -H "Transfer-Encoding: chunked" to force the chunked request:

curl -i https://api.honeybadger.io/v1/source_maps \
  -H "Transfer-Encoding: chunked" \
  -F api_key=hbp_example \
  -F revision=123abcd \
  -F minified_url=https://example.com/assets/application.min.js \
  -F source_map=@path/to/application.js.map \
  -F minified_file=@path/to/application.min.js

What happens?

502 error from the AWS ELB:

HTTP/2 502
server: awselb/2.0
date: Wed, 08 Jan 2025 17:26:55 GMT
content-type: text/html
content-length: 122

<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
</body>
</html>

What were you expecting to happen?

Sourcemap to upload successfully.

Any other comments?

This might not be specific to honeybadger-js but maybe an AWS ELB config? I noticed this while (accidentally) upgrading the bun version I was using which introduced support for chunked transfers with https://bun.sh/blog/bun-v1.1.39#fetch-request-body-streams

What versions are you using?

Package Name: @honeybadger-io/rollup-plugin
Package Version: ^5.10.0

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