René's URL Explorer Experiment


Title: fix: honor proxyUser/proxyPass when downloading the Local binary by Ashfaqbs · Pull Request #186 · browserstack/browserstack-local-nodejs · GitHub

Open Graph Title: fix: honor proxyUser/proxyPass when downloading the Local binary by Ashfaqbs · Pull Request #186 · browserstack/browserstack-local-nodejs

X Title: fix: honor proxyUser/proxyPass when downloading the Local binary by Ashfaqbs · Pull Request #186 · browserstack/browserstack-local-nodejs

Description: Fixes #164. Root cause proxyHost/proxyPort are threaded through to every binary-download request path (the async in-process download, and the two spawned child scripts used by the sync path), but proxyUser/proxyPass were only ever forwarded to the already-running BrowserStackLocal binary's own --proxy-user/--proxy-pass flags (getBinaryArgs()). Local.js's conf object built in getBinaryPath() never carried them, so an authenticating proxy accepted the binary's own runtime traffic but rejected the request to download the binary in the first place. Fix Threaded proxyUser/proxyPass through the same four call sites that already handle proxyHost/proxyPort: LocalBinary.download() (async, in-process) and fetchDownloadSourceUrlAsync() — build the HttpsProxyAgent with an auth: "user:pass" option (what https-proxy-agent uses to set Proxy-Authorization). LocalBinary.downloadSync() and getSourceUrlSync(), which spawn download.js/fetchDownloadSourceUrl.js — pass the credentials through the child's environment (BROWSERSTACK_LOCAL_PROXY_USER/_PASS), not argv, mirroring this codebase's existing BROWSERSTACK_LOCAL_AUTH_TOKEN pattern (argv is readable via ps//proc//cmdline, env is not). Test plan Added 5 regression tests in test/local.js (Proxy authentication for binary download), all offline/no network: the async download path builds the proxy agent with the right auth, and leaves it unset when no credentials are configured; both spawned-child paths pass credentials via env and never put them in argv; Local's own config building forwards proxyUser/proxyPass all the way through. Confirmed each of the 5 fails against the pre-fix code and passes with the fix (stashed the lib/ changes, reran, restored). eslint lib/* index.js (the repo's own pretest) is clean. I could not run the pre-existing "should download binaries with proxy" test (and the other real-network Download/Local tests) in this environment — they call the live local.browserstack.com endpoint and need a real BROWSERSTACK_ACCESS_KEY, neither of which I have here. Happy to have CI confirm those.

Open Graph Description: Fixes #164. Root cause proxyHost/proxyPort are threaded through to every binary-download request path (the async in-process download, and the two spawned child scripts used by the sync path), but p...

X Description: Fixes #164. Root cause proxyHost/proxyPort are threaded through to every binary-download request path (the async in-process download, and the two spawned child scripts used by the sync path), but p...

Opengraph URL: https://github.com/browserstack/browserstack-local-nodejs/pull/186

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.4

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:2578780c-677e-3174-e82e-4b275d7a7b13
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id931A:9F9AF:21B61D:2D9DC2:6B04399F
html-safe-nonce4d8edd32159efd265bb0de716620439b3358f24adec0588c5d0c6e992388e4cd
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MzFBOjlGOUFGOjIxQjYxRDoyRDlEQzI6NkIwNDM5OUYiLCJ2aXNpdG9yX2lkIjoiMjE5NzI3NzE3Mjc1Mjk4ODU3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac45e7c8b788dde691e48bdf237dfbe21268c4854bf6947fcea1341ff4bd03c1b9
hovercard-subject-tagpull_request:4604625213
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/browserstack/browserstack-local-nodejs/pull/186/files
twitter:imagehttps://avatars.githubusercontent.com/u/105435085?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/105435085?s=400&v=4
og:image:altFixes #164. Root cause proxyHost/proxyPort are threaded through to every binary-download request path (the async in-process download, and the two spawned child scripts used by the sync path), but p...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/browserstack/browserstack-local-nodejs git https://github.com/browserstack/browserstack-local-nodejs.git
octolytics-dimension-user_id1119453
octolytics-dimension-user_loginbrowserstack
octolytics-dimension-repository_id51923223
octolytics-dimension-repository_nwobrowserstack/browserstack-local-nodejs
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id51923223
octolytics-dimension-repository_network_root_nwobrowserstack/browserstack-local-nodejs
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release06dc448a76fe4751ac1db26524aefa3aa3e889a8
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/browserstack/browserstack-local-nodejs/pull/186/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbrowserstack%2Fbrowserstack-local-nodejs%2Fpull%2F186%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbrowserstack%2Fbrowserstack-local-nodejs%2Fpull%2F186%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=browserstack%2Fbrowserstack-local-nodejs
Reloadhttps://github.com/browserstack/browserstack-local-nodejs/pull/186/files
Reloadhttps://github.com/browserstack/browserstack-local-nodejs/pull/186/files
Reloadhttps://github.com/browserstack/browserstack-local-nodejs/pull/186/files
browserstackhttps://github.com/browserstack
browserstack-local-nodejshttps://github.com/browserstack/browserstack-local-nodejs
Codehttps://github.com/browserstack/browserstack-local-nodejs
Issues25 (25)https://github.com/browserstack/browserstack-local-nodejs/issues
Pull requests29 (29)https://github.com/browserstack/browserstack-local-nodejs/pulls
Actionshttps://github.com/browserstack/browserstack-local-nodejs/actions
Projectshttps://github.com/browserstack/browserstack-local-nodejs/projects
Security and qualityhttps://github.com/browserstack/browserstack-local-nodejs/security
Insightshttps://github.com/browserstack/browserstack-local-nodejs/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fbrowserstack%2Fbrowserstack-local-nodejs%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fbrowserstack%2Fbrowserstack-local-nodejs%2Fissues%2Fnew%2Fchoose
Ashfaqbshttps://github.com/Ashfaqbs
browserstack:masterhttps://github.com/browserstack/browserstack-local-nodejs/tree/master
Ashfaqbs:fix/164-proxy-auth-for-binary-downloadhttps://github.com/Ashfaqbs/browserstack-local-nodejs/tree/fix/164-proxy-auth-for-binary-download
Conversation 1 https://github.com/browserstack/browserstack-local-nodejs/pull/186
Commits 1 https://github.com/browserstack/browserstack-local-nodejs/pull/186/commits
Checks 0 https://github.com/browserstack/browserstack-local-nodejs/pull/186/checks
Files changed https://github.com/browserstack/browserstack-local-nodejs/pull/186/files
Please reload this pagehttps://github.com/browserstack/browserstack-local-nodejs/pull/186/files
fix: honor proxyUser/proxyPass when downloading the Local binary https://github.com/browserstack/browserstack-local-nodejs/pull/186/files#top
Show all changes 1 commit https://github.com/browserstack/browserstack-local-nodejs/pull/186/files
b8ccb47 fix: honor proxyUser/proxyPass when downloading the Local binary Ashfaqbs Sep 22, 2026 https://github.com/browserstack/browserstack-local-nodejs/pull/186/commits/b8ccb47dc340c12e8e8ba26fd37086f4128dfd4e
Clear filters https://github.com/browserstack/browserstack-local-nodejs/pull/186/files
Please reload this pagehttps://github.com/browserstack/browserstack-local-nodejs/pull/186/files
Please reload this pagehttps://github.com/browserstack/browserstack-local-nodejs/pull/186/files
Local.js https://github.com/browserstack/browserstack-local-nodejs/pull/186/files#diff-55822fcdf12b3af2932090ab27bf9d373bde5a0923595fca062e5ab834efdaf9
LocalBinary.js https://github.com/browserstack/browserstack-local-nodejs/pull/186/files#diff-5af64958aaf2b1a4a750ddf96b03cc5742385ee3429d829dd0052429f81d47f3
download.js https://github.com/browserstack/browserstack-local-nodejs/pull/186/files#diff-12d45781f0795c69838b6657fe7fc20701665270bf1c38d4777c6140ea0f72be
fetchDownloadSourceUrl.js https://github.com/browserstack/browserstack-local-nodejs/pull/186/files#diff-075376b6503b99e004449336eb36c037cea262ffcce89384b4b3765abd183dbb
fetchDownloadSourceUrlAsync.js https://github.com/browserstack/browserstack-local-nodejs/pull/186/files#diff-7a89c6427fe8502b83a6968261b0280c32218a4d3cd6d6bd68f431b8750a0546
local.js https://github.com/browserstack/browserstack-local-nodejs/pull/186/files#diff-de3a83ad024f2fb51977a7a30106c9507902d3efefdbd980946aa4afabf896b8
https://github.com/browserstack/browserstack-local-nodejs/blob/master/CODEOWNERS#L1
lib/Local.jshttps://github.com/browserstack/browserstack-local-nodejs/pull/186/files#diff-55822fcdf12b3af2932090ab27bf9d373bde5a0923595fca062e5ab834efdaf9
View file https://github.com/browserstack/browserstack-local-nodejs/blob/b8ccb47dc340c12e8e8ba26fd37086f4128dfd4e/lib/Local.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/browserstack/browserstack-local-nodejs/pull/186/{{ revealButtonHref }}
https://github.com/browserstack/browserstack-local-nodejs/pull/186/files#diff-55822fcdf12b3af2932090ab27bf9d373bde5a0923595fca062e5ab834efdaf9
https://github.com/browserstack/browserstack-local-nodejs/pull/186/files#diff-55822fcdf12b3af2932090ab27bf9d373bde5a0923595fca062e5ab834efdaf9
https://github.com/browserstack/browserstack-local-nodejs/blob/master/CODEOWNERS#L1
lib/LocalBinary.jshttps://github.com/browserstack/browserstack-local-nodejs/pull/186/files#diff-5af64958aaf2b1a4a750ddf96b03cc5742385ee3429d829dd0052429f81d47f3
View file https://github.com/browserstack/browserstack-local-nodejs/blob/b8ccb47dc340c12e8e8ba26fd37086f4128dfd4e/lib/LocalBinary.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/browserstack/browserstack-local-nodejs/pull/186/{{ revealButtonHref }}
https://github.com/browserstack/browserstack-local-nodejs/pull/186/files#diff-5af64958aaf2b1a4a750ddf96b03cc5742385ee3429d829dd0052429f81d47f3
https://github.com/browserstack/browserstack-local-nodejs/pull/186/files#diff-5af64958aaf2b1a4a750ddf96b03cc5742385ee3429d829dd0052429f81d47f3
https://github.com/browserstack/browserstack-local-nodejs/pull/186/files#diff-5af64958aaf2b1a4a750ddf96b03cc5742385ee3429d829dd0052429f81d47f3
https://github.com/browserstack/browserstack-local-nodejs/pull/186/files#diff-5af64958aaf2b1a4a750ddf96b03cc5742385ee3429d829dd0052429f81d47f3
https://github.com/browserstack/browserstack-local-nodejs/pull/186/files#diff-5af64958aaf2b1a4a750ddf96b03cc5742385ee3429d829dd0052429f81d47f3
https://github.com/browserstack/browserstack-local-nodejs/pull/186/files#diff-5af64958aaf2b1a4a750ddf96b03cc5742385ee3429d829dd0052429f81d47f3
https://github.com/browserstack/browserstack-local-nodejs/pull/186/files#diff-5af64958aaf2b1a4a750ddf96b03cc5742385ee3429d829dd0052429f81d47f3
https://github.com/browserstack/browserstack-local-nodejs/pull/186/files#diff-5af64958aaf2b1a4a750ddf96b03cc5742385ee3429d829dd0052429f81d47f3
https://github.com/browserstack/browserstack-local-nodejs/blob/master/CODEOWNERS#L1
lib/download.jshttps://github.com/browserstack/browserstack-local-nodejs/pull/186/files#diff-12d45781f0795c69838b6657fe7fc20701665270bf1c38d4777c6140ea0f72be
View file https://github.com/browserstack/browserstack-local-nodejs/blob/b8ccb47dc340c12e8e8ba26fd37086f4128dfd4e/lib/download.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/browserstack/browserstack-local-nodejs/pull/186/{{ revealButtonHref }}
https://github.com/browserstack/browserstack-local-nodejs/pull/186/files#diff-12d45781f0795c69838b6657fe7fc20701665270bf1c38d4777c6140ea0f72be
https://github.com/browserstack/browserstack-local-nodejs/pull/186/files#diff-12d45781f0795c69838b6657fe7fc20701665270bf1c38d4777c6140ea0f72be
https://github.com/browserstack/browserstack-local-nodejs/pull/186/files#diff-12d45781f0795c69838b6657fe7fc20701665270bf1c38d4777c6140ea0f72be
https://github.com/browserstack/browserstack-local-nodejs/blob/master/CODEOWNERS#L1
lib/fetchDownloadSourceUrl.jshttps://github.com/browserstack/browserstack-local-nodejs/pull/186/files#diff-075376b6503b99e004449336eb36c037cea262ffcce89384b4b3765abd183dbb
View file https://github.com/browserstack/browserstack-local-nodejs/blob/b8ccb47dc340c12e8e8ba26fd37086f4128dfd4e/lib/fetchDownloadSourceUrl.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/browserstack/browserstack-local-nodejs/pull/186/{{ revealButtonHref }}
https://github.com/browserstack/browserstack-local-nodejs/pull/186/files#diff-075376b6503b99e004449336eb36c037cea262ffcce89384b4b3765abd183dbb
https://github.com/browserstack/browserstack-local-nodejs/pull/186/files#diff-075376b6503b99e004449336eb36c037cea262ffcce89384b4b3765abd183dbb
https://github.com/browserstack/browserstack-local-nodejs/pull/186/files#diff-075376b6503b99e004449336eb36c037cea262ffcce89384b4b3765abd183dbb
https://github.com/browserstack/browserstack-local-nodejs/blob/master/CODEOWNERS#L1
lib/fetchDownloadSourceUrlAsync.jshttps://github.com/browserstack/browserstack-local-nodejs/pull/186/files#diff-7a89c6427fe8502b83a6968261b0280c32218a4d3cd6d6bd68f431b8750a0546
View file https://github.com/browserstack/browserstack-local-nodejs/blob/b8ccb47dc340c12e8e8ba26fd37086f4128dfd4e/lib/fetchDownloadSourceUrlAsync.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/browserstack/browserstack-local-nodejs/pull/186/{{ revealButtonHref }}
https://github.com/browserstack/browserstack-local-nodejs/pull/186/files#diff-7a89c6427fe8502b83a6968261b0280c32218a4d3cd6d6bd68f431b8750a0546
https://github.com/browserstack/browserstack-local-nodejs/pull/186/files#diff-7a89c6427fe8502b83a6968261b0280c32218a4d3cd6d6bd68f431b8750a0546
https://github.com/browserstack/browserstack-local-nodejs/pull/186/files#diff-7a89c6427fe8502b83a6968261b0280c32218a4d3cd6d6bd68f431b8750a0546
https://github.com/browserstack/browserstack-local-nodejs/blob/master/CODEOWNERS#L1
test/local.jshttps://github.com/browserstack/browserstack-local-nodejs/pull/186/files#diff-de3a83ad024f2fb51977a7a30106c9507902d3efefdbd980946aa4afabf896b8
View file https://github.com/browserstack/browserstack-local-nodejs/blob/b8ccb47dc340c12e8e8ba26fd37086f4128dfd4e/test/local.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/browserstack/browserstack-local-nodejs/pull/186/{{ revealButtonHref }}
https://github.com/browserstack/browserstack-local-nodejs/pull/186/files#diff-de3a83ad024f2fb51977a7a30106c9507902d3efefdbd980946aa4afabf896b8
https://github.com/browserstack/browserstack-local-nodejs/pull/186/files#diff-de3a83ad024f2fb51977a7a30106c9507902d3efefdbd980946aa4afabf896b8
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.