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

API crashes when page title contains special characters like / and ? #6

Open
abhi12ravi opened this issue Jun 8, 2021 · 1 comment

Comments

@abhi12ravi
Copy link

Hi Team,

I was recently using the pageviewapi for my project and found that whenever the Wikipedia page title had special characters like / or ?, it throws an error saying ZeroOrDataNotLoadedException. Is that by design or is something amiss?

Please do let me know if I have missing something.

In the below example, I’m trying to pass ‘9/11 conspiracy theories’ as the page title. However, the per_article method throws a ZeroOrDataNotLoadedException.

Kindly let me know if you need any further information to resolve this issue.

Regards,
Abhiram

Screenshot:

image

@inkrement
Copy link

Hi, I encountered the same issue. However, there is an easy workaround. Just encode your slashes using url-encoding (e.g., write AC%2FDC instead of AC/DC). Hope this helps.

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

No branches or pull requests

2 participants