fix
patch
gateway
feat/phase-2g-bundle
fix(gateway): buffer multipart import body for Netlify (serverless-http)
Netlify wraps the Lambda event in a synthetic IncomingMessage whose body is already a Buffer on req.body; streaming that request into fetch() with duplex often fails or yields an empty upstream request, so the Hub showed generic Import failed.
Read Buffer from req.body when present, else consume the stream; POST the bytes with a correct Content-Length.
Hub: show HTTP status in import error when the API returns no JSON error.
sha256:3eb7ebc8d7d3c8bfabbe087f39be23dcdf99cbf5477956d96f352bb772f75723
sha
sha256:beebe776a03b1f8700f9888ded1daf58c54020c10b2d63406345c855f1af0ee8
snapshot
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:3eb7ebc8d7d3c8bfabbe087f39be23dcdf99cbf5477956d96f352bb772f75723 --body "your comment"
No comments yet. Be the first to start the discussion.