DenoDDeno
Powered by
cnslC
Denoโ€ข14mo agoโ€ข
1 reply
cnsl

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);
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,944Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Using proxies
medison ๐“‚ƒ เฃชห– ึดึถึธ๐Ÿ‡เผ‹เผ˜เฟMmedison ๐“‚ƒ เฃชห– ึดึถึธ๐Ÿ‡เผ‹เผ˜เฟ / help
7mo ago
Reasons to choose Node.js
abiAabi / help
3y ago
Possible to use CsvParseStream in Node.js
nefNnef / help
10mo ago
How to use Deno like Node.js.
hephzisoftHhephzisoft / help
16mo ago