Conversation
The Elysia SDK unconditionally defaulted to Bun's fetch transport, even when running on Node.js. That silently replaced the node transport and lost proxy support (http_proxy/HTTPS_PROXY), custom CA handling via NODE_EXTRA_CA_CERTS, and keep-alive agent tuning for anyone running Elysia on Node behind a corporate proxy. Select the default transport by runtime, the same way getRuntime() already detects it: keep makeFetchTransport on Bun, use makeNodeTransport everywhere else. An explicitly provided transport option is still respected. Co-Authored-By: Muse Spark <noreply@meta.com>
sx4im
marked this pull request as ready for review
September 27, 2026 06:43
sx4im
requested review from
nicohrubec and
s1gr1d
and removed request for
a team
September 27, 2026 06:43
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
init()in the Elysia SDK unconditionally defaulted to Bun's fetch transport, even when running on Node.js. That silently replaced the node transport, losing proxy support (http_proxy/HTTPS_PROXY), custom CA handling viaNODE_EXTRA_CA_CERTS, and keep-alive agent tuning for anyone running Elysia on Node behind a corporate proxy.This picks the default transport by detected runtime, the same way
getRuntime()already detects it:makeFetchTransporton Bun,makeNodeTransporteverywhere else. An explicitly providedtransportoption is still respected, and no dependency structure changes —@sentry/bunalready re-exportsmakeNodeTransportfrom@sentry/node.yarn lint) & (yarn test).Fixes #24048
Notes on verification:
yarn testinpackages/elysiapasses (33/33, including a new regression test that failed before the fix).yarn lintreports 8 errors in the package, all pre-existing on the untouched tree (unbuilt@sentry/buntypes in this environment; the change removes one of them and adds none). A fullyarn build:devis blocked by a pre-existingserver-utilstypes failure from vite version drift, unrelated to this change; the elysia transpile build succeeds.