clean-aquamarineC
Apify & Crawlee2y ago
6 replies
clean-aquamarine

Trying to use static proxy group

I'm trying to use a static proxy group to send traffic through our specific proxy server with a stable IP address
below the piece of code involved
const httpsAgent = new HttpsProxyAgent({
            host: 'proxy.apify.com', 
            port: 8000, 
            auth: "<username>:<password>"
        });
        const axiosWithProxy = axios.create({httpsAgent});
const response = await axiosWithProxy.get(endpoint);

but when launch the execution of the bit, last line of code above return an error that say:
"Request failed with status code 407 AxiosError: Request failed with status code 407 ..."
error details are shown in the attached screenshot.
Anyone can help me please?
Screenshot_2024-06-06_at_16.03.41.png
Was this page helpful?