aikolover
aikolover4w ago

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);
1 Reply
toni
toni4w ago
To assist you effectively, could you please provide the following details: • Proxy Details: Are you using an HTTP, HTTPS, or SOCKS proxy? What proxy tool is it? • Deno Version: Which version of Deno are you currently using? Have you tried to use deno --allow-net main.ts ?

Did you find this page helpful?