-
Notifications
You must be signed in to change notification settings - Fork 88
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
Issues with displaying website through the proxy #84
Comments
What VPN is this? Do you have another proxy configured on your system at all? What happens if you try to connect directly to that address without the VPN running:
I suspect that you have some kind of upstream proxy that's required for internet access, and while other software (Firefox) automatically detects your system settings, Node.js doesn't (this is a general problem: nodejs/node#8381). In that case, you'll need to detect your system proxy and provide a |
About proxiesNo, I don't use any VPNs or Proxies usually, but I enable a VyprVPN system-level VPN (through Network Manager) for testing when I have some suspicions. So the only proxy enabled in my FF is the passthrough one, on 127.0.0.1:8000 I made a few more tests, and while I'm not succeeded yet in nailing down the reason, I figured out one interesting thing. When FF is not configured to use a proxy, a request to https://abs.twimg.com/ is made using HTTP/2. Here is a sample response:
But when I enable the proxy in FF, it seems to switch immediately back to HTTP/1.1:
The Connecting to https://twitter.comAs for the suggested script: require('https')
.get('https://twitter.com')
.on('response', () => console.log('got response'))
.on('error', console.log); It cannot connected to the peer and nothing appears on the stdout. Here is the strace output:
|
So this one can be closed I suppose, as it doesn't seem to be relevant. |
Huh, interesting! Interfering government proxies sound very annoying, sorry about that, but yes it looks like HTTP Toolkit is doing the right thing in that case. Connecting upstream directly genuinely times out, and it correctly shows that as the error. I'll close this. Very interesting that it's intermittent though, I'd be curious to know how they're implementing the block internally to cause that. Maybe it's by IP, and round-robin DNS is sending you to different Twitter IPs each time, and not all of them are blocked? Anyway, if using a VPN works, that's probably the best option. Alternatively you might find that the |
I created a simple passthrough proxy and try to use it with FF.
The problem is, that for some reason the https://twitter.com website doesn't load at all or loads partially when the proxy is used.
I cannot identify the reason, this is what I see in the logs:
and then after a long delay:
FF outout:
Now, if I enable the system level VPN, it does start working!
So basically twitter.com without proxy works, and also it works with proxy with VPN
It seems like FF can do something that http://twitter.com requires, but what my proxy (or the underlying mockttp) can't do. What it could be? Does anyone have any idea?
This is my source code:
https://github.com/OnkelTem/passthrough-web-proxy
The text was updated successfully, but these errors were encountered: