-
-
Notifications
You must be signed in to change notification settings - Fork 11.5k
Description
Describe the bug
https://stackoverflow.com/questions/60578209/axios-proxy-configuration-causing-bad-request
Similar questions have been asked in the past on Stackoverflow and others, but there is a Proxy that is similar and still doesn't work.
I have seen that it works correctly without other Proxies or Proxies, but with certain Proxies something in the request is missing or corrupted and I have seen that a 400 Bad Request is returned from the server.
We have also confirmed that the problem is not a Proxy.
We have seen successful requests in Python's requests module, etc.
To Reproduce
This only happens with some Proxies, which are difficult to reproduce because they require purchase.
So I can send logs instead.
Code snippet
const response = await axios.get('https://twitter.com/', {
proxy: {
protocol: 'http:',
hostname: 'rotating.world.h1.ghostealth.com',
port: 2137
}
})Expected behavior
No response
Axios Version
1.1.3
Adapter Version
No response
Browser
No response
Browser Version
No response
Node.js Version
18.12.1
OS
Windows 11
Additional Library Versions
No response
Additional context/Screenshots
No response