Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

URL is different in error message #282

Closed
rgaudin opened this issue Feb 12, 2024 · 2 comments
Closed

URL is different in error message #282

rgaudin opened this issue Feb 12, 2024 · 2 comments

Comments

@rgaudin
Copy link
Member

rgaudin commented Feb 12, 2024

In this run on zimit, the error message is the following:

failed to connect to https://americangirl.fandom.com/wiki: 404 Client Error: Not Found for url: https://americangirl.fandom.com/wiki/Wiki

Notice that the passed URL has a title cases Wiki at the end while the error message has a lowercase wiki.

Source code apparently only uses urllib.parse.urlparse(url).geturl() which should return the same URL in this case

@benoit74
Copy link
Collaborator

The first one is https://americangirl.fandom.com/wiki (it is the URL passed by the "user")
The next one is https://americangirl.fandom.com/wiki/Wiki (it is the URL after following redirects, probably what requests choose to display here)

I don't think there is any problem here

@rgaudin
Copy link
Member Author

rgaudin commented Feb 12, 2024

My bad, I thought it was the opposite 😵‍💫

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants