fix: use ProxyAgent for bulk export results download @W-23816212@ - #1507
Open
WillieRuemmele wants to merge 3 commits into
Open
fix: use ProxyAgent for bulk export results download @W-23816212@#1507WillieRuemmele wants to merge 3 commits into
WillieRuemmele wants to merge 3 commits into
Conversation
jfeingold35
approved these changes
Aug 17, 2026
The bulkRequest() function bypasses jsforce to avoid response buffering, but didn't carry over proxy handling. Job creation/polling goes through jsforce's transport which uses a ProxyAgent dispatcher, but results download called undici fetch with no dispatcher — causing 'Fetch Failed (10)' errors in proxy-restricted environments. Read proxy env vars and pass a ProxyAgent dispatcher, matching the pattern in jsforce's request.ts. W-23893215 W-23816212
WillieRuemmele
force-pushed
the
wr/fix-bulk-export-proxy
branch
from
August 17, 2026 16:25
eafbb5e to
e905aa2
Compare
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.
Summary
bulkRequest()inbulkUtils.tsbypasses jsforce to stream results without buffering, but the original implementation didn't carry over jsforce's proxy handlingHTTP_PROXY/https_proxyenv vars and creates aProxyAgentdispatcher — but the results download called bareundicifetchwith no dispatcherProxyAgentdispatcher to undici's fetch, matching the pattern in jsforce'srequest.ts@W-23893215@
@W-23816212@
forcedotcom/cli#3620
Test plan
npm run build)npm test)sf data export bulkwith--waitand confirm results are retrieved without needingNODE_USE_ENV_PROXY=1