DenoDDeno
Powered by
cnslC
Denoโ€ข15mo 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,934Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Using proxies
medison ๐“‚ƒ เฃชห– ึดึถึธ๐Ÿ‡เผ‹เผ˜เฟMmedison ๐“‚ƒ เฃชห– ึดึถึธ๐Ÿ‡เผ‹เผ˜เฟ / help
8mo ago
Reasons to choose Node.js
abiAabi / help
3y ago
Axios HttpsProxyAgent
financesaucerFfinancesaucer / help
3y ago
Possible to use CsvParseStream in Node.js
nefNnef / help
11mo ago