Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Giving proxyUrl with a password that contains special characters crashes #55

Closed
jirimoravcik opened this issue Oct 8, 2021 · 1 comment

Comments

@jirimoravcik
Copy link
Member

jirimoravcik commented Oct 8, 2021

e.g. having proxyUrl = 'http://username:a6%6qgx12345@127.0.0.1:8888'
will throw Uncaught URIError: URI malformed (see https://github.com/apify/got-scraping/blob/master/src/agent/h1-proxy-agent.ts#L21)
I think it should work even with such passwords

ref sindresorhus/got#1317

@szmarczak
Copy link
Contributor

This is correct, %6q is malformed. You need to percent-encode % as %25:

http://username:a6%256qgx12345@127.0.0.1:8888

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants