-
Notifications
You must be signed in to change notification settings - Fork 149
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
Error "The allpages API returned nothing" on gamepedia.com HTTP URL #334
Comments
Works for me on current master. The allpages API should be working: https://lifeisfeudal.gamepedia.com/api.php?action=query&list=allpages&apfrom=B
However, if it doesn't, try |
Actually, nevermind, I was able to reproduce the error while testing the python 3 branch. It's because of the POST, which usually helps avoid some barriers but here does the opposite. We can switch to get. |
POST does not follow the redirect from HTTP to HTTPS, which makes the request (and the entire dump) fail if an API URL is passed like http://7daystodie-de.gamepedia.com/api.php Fixes WikiTeam#334
I tried to dump this wiki: https://lifeisfeudal.gamepedia.com
and dumpgenerator.py fail retrieving titles in the namespace 0.
D:\wikiteam-master>python dumpgenerator.py --api=https://lifeisfeudal.gamepedia.com/api.php --xml --curonly --images
Checking API... https://lifeisfeudal.gamepedia.com/api.php
API is OK: https://lifeisfeudal.gamepedia.com/api.php
Checking index.php... https://lifeisfeudal.gamepedia.com/index.php
index.php is OK
Analysing https://lifeisfeudal.gamepedia.com/api.php
Trying generating a new dump into a new directory...
Loading page titles from namespaces = all
Excluding titles from namespaces = None
21 namespaces found
Retrieving titles in the namespace 0
..The allpages API returned nothing. Exit.
The text was updated successfully, but these errors were encountered: