Proxy authentication bug?
Was trying to connect residential proxies to my crawler after using some other proxies and after changing ProxyConfiguration URLs I got error
net::ERR_TUNNEL_CONNECTION_FAILEDAfter checking credentials, and all possible whitelists and blacklists I realized that problem is not on my side. So I tried to implement proxy authentication in old way and it worked. This code doesn't work: This code works: Should I create a bug report?
4 Replies
nope it's not a bug.
there are proxy providers that require a different approach sometimes for example a session id.
I'm using a proxy provider that has the same behaviour, check their documentation for session id or for other ways to compose the url.
crude-lavenderOP•2y ago
@NeoNomade I used bright data and they also require basic authentication and It wasn't required to authenticate manually with
.authenticate
I thought that crawlee handles it automatically with launch context depending on proxyUrl content. But I didn't find where exactly crawlee uses URLS to authenticate only validation and initialization.@5y just advanced to level 1! Thanks for your contributions! 🎉
You don’t have to Authenticate manually.
You have to generate URLs with random session ids based on their logic. I have a function for that I’ll share in a few minutes, let me reach my computer