-
Notifications
You must be signed in to change notification settings - Fork 3.8k
fix(fetch): ignore proxy object without url property #25414
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
base: main
Are you sure you want to change the base?
Conversation
When a URL object is passed as the proxy option, or when a proxy object lacks a "url" property, ignore it instead of throwing an error. This fixes a regression introduced in 1.3.4 where libraries like taze that pass URL objects as proxy values would fail with: "fetch() proxy object requires a 'url' property" URL objects don't have a "url" property (they have "href"), so the strict validation was incorrectly rejecting valid use cases. Fixes #25413 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
|
Updated 12:34 PM PT - Dec 8th, 2025
❌ @Jarred-Sumner, your commit f0db0fe has 6 failures in
🧪 To try this PR locally: bunx bun-pr 25414That installs a local version of the PR into your bun-25414 --bun |
WalkthroughModified proxy object validation in Bun's fetch implementation to gracefully handle missing, null, or undefined proxy URLs. Previously, the code required proxy.url to be a non-empty string and threw errors on invalid values. Now, invalid proxy URLs are silently ignored and requests proceed without a proxy. Changes
Possibly related PRs
Suggested reviewers
Pre-merge checks✅ Passed checks (4 passed)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (2)
🧰 Additional context used📓 Path-based instructions (6)test/**/*.{js,ts,jsx,tsx}📄 CodeRabbit inference engine (.cursor/rules/writing-tests.mdc)
Files:
test/**/*.test.{ts,js,jsx,tsx,mjs,cjs}📄 CodeRabbit inference engine (test/CLAUDE.md)
Files:
test/**/*.test.{ts,tsx}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
src/**/*.{cpp,zig}📄 CodeRabbit inference engine (.cursor/rules/building-bun.mdc)
Files:
src/**/*.zig📄 CodeRabbit inference engine (.cursor/rules/building-bun.mdc)
Files:
**/*.zig📄 CodeRabbit inference engine (.cursor/rules/zig-javascriptcore-classes.mdc)
Files:
🧠 Learnings (10)📓 Common learnings📚 Learning: 2025-10-18T05:23:24.403ZApplied to files:
📚 Learning: 2025-10-19T04:55:33.099ZApplied to files:
📚 Learning: 2025-10-20T01:38:02.660ZApplied to files:
📚 Learning: 2025-11-24T18:35:08.612ZApplied to files:
📚 Learning: 2025-11-24T18:36:59.706ZApplied to files:
📚 Learning: 2025-10-08T13:48:02.430ZApplied to files:
📚 Learning: 2025-11-24T18:37:30.259ZApplied to files:
📚 Learning: 2025-10-17T20:50:58.644ZApplied to files:
📚 Learning: 2025-11-24T18:35:39.205ZApplied to files:
🔇 Additional comments (3)
Comment |
|
I don't think this PR fixes the issue, i've tested it with |
|
@Araxeus try running |
|
it works now, my bad didn't know the |
Summary
Test plan
Fixes #25413
🤖 Generated with Claude Code