Comments (3)
Yup, that patch fixes the issue for me!
from httptoolkit-server.
After some investigation, it turns out that you are setting the envoirement variable
http_proxy
, but in code attempt to access it asHTTP_PROXY
.
Technically, we're setting both, here:
That said, it totally makes sense to me that Windows collapses these into a single variable when it ignores case, and then that Node bug (thanks for filing that!) makes it case sensitive to the selected result.
I don't want to overcomplicate this (e.g. to handle all possible casings) since in theory the current approach is 'correct' (set both vars, read one of them, expect that to be set) and it seems there's a proper fix en route for the specific node bug anyway. For now, I've just added the simplest fix, which should resolve this for your specific Undici issue and also various other cases (e.g. global-agent reads HTTP_PROXY internally I think, which is presumably broken as well, though not actually crashing).
I've pushed that here: 0a3d0af. Can you give that a quick test and confirm it works for you?
from httptoolkit-server.
and it seems there's a proper fix en route for the specific node bug anyway.
Sadly it seems that the NodeJS team has decided to add this behavior to the docs instead of fixing it.
nodejs/node#49008
nodejs/node#48976 (review)
from httptoolkit-server.
Related Issues (20)
- possible to drop url and headers to a file ? HOT 3
- fails to intercept oauth2 HOT 5
- Fresh Terminal, Wrong git-bash HOT 3
- npm install error: sentry-cli HOT 8
- self-signed upstream CA-certificate HOT 1
- How to configure mock requests without any browser interaction. HOT 6
- HttpToolkit generating and not cleaning outputs HOT 4
- Upstream proxy support HOT 1
- build for arm64 failed HOT 19
- Support android-arm64/Termux HOT 11
- Support darwin-arm64 HOT 10
- Cant install HOT 2
- install error HOT 2
- Can I run the`httptoolkit-server` as a remote service? HOT 2
- 'Cannot find module prepend-node.js' when using npx in hooked terminal HOT 5
- Installing httptoolkit-server for use as a library HOT 3
- ecapture HOT 1
- android: cant find trusted cert after install using root adb HOT 10
- Support running the server on linux-arm64
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from httptoolkit-server.