aikolover
aikolover
DDeno
Created by aikolover on 1/1/2025 in #help
Axios always 404 when using using proxies compared to Node.JS
Hello, I have an issue, using proxies on axios, the same code that works on Node.JS doesn't on Deno. On Node.JS the request goes through, however on Deno, I always get a 404 status code, any idea on what might cause this issue?
const { data } = await axios.get("http://httpbin.org/get", {
proxy: {
protocol: "http",
host: "rp.proxyscrape.com",
port: 6060,
auth: {
username,
password
}
}
});

console.log(data);
const { data } = await axios.get("http://httpbin.org/get", {
proxy: {
protocol: "http",
host: "rp.proxyscrape.com",
port: 6060,
auth: {
username,
password
}
}
});

console.log(data);
2 replies