Hey, new to apify, how can I use Apify's proxy con...
# đź—Łgeneral-chat
n
Hey, new to apify, how can I use Apify's proxy configuration with axios? I tried something like this but I get a 400 error
Copy code
const proxyConfiguration = await Actor.createProxyConfiguration({
    groups: ['auto'],
});
let proxy_url = new URL(await proxyConfiguration.newUrl());

const response = await axios.get(myurl, {
    proxy: {
        protocol: 'http',
        host: proxy_url.hostname,
        port: parseInt(proxy_url.port),
        auth: {
            username: proxy_url.username,
            password: proxy_url.password,
        },
    },
})