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

KeyError: query on kiwki.us #295

Closed
revi opened this issue May 28, 2017 · 5 comments
Closed

KeyError: query on kiwki.us #295

revi opened this issue May 28, 2017 · 5 comments

Comments

@revi
Copy link

revi commented May 28, 2017

Full log here.

  File "dumpgenerator.py", line 2084, in <module>
    main()
  File "dumpgenerator.py", line 2076, in main
    createNewDump(config=config, other=other)
  File "dumpgenerator.py", line 1649, in createNewDump
    getPageTitles(config=config, session=other['session'])
  File "dumpgenerator.py", line 403, in getPageTitles
    for title in titles:
  File "dumpgenerator.py", line 277, in getPageTitlesAPI
    allpages = jsontitles['query']['allpages']
KeyError: 'query'

ApiSandbox mimic'ing action=query list=allpages works well.

The site is announced to shut down their sites by 2017-05-31 15:00 UTC, so you are free to close them if it's too late. :P

@SgtLion
Copy link

SgtLion commented Dec 21, 2017

I'm having this exact same bug. Is there any further understanding on it?

@nemobis
Copy link
Member

nemobis commented May 19, 2018

If https://wikiapiary.com/wiki/%ED%82%A4%EC%9C%84%EC%9C%84%ED%82%A4 is right, this was a MediaWiki 1.27.1 wiki, so hardly an old one. The syntax is correct, because the first 18 namespaces worked. What was wrong with the other?

We could catch the KeyError but only if we know what to do. @SgtLion , what's the wiki you have this problem with?

@SgtLion
Copy link

SgtLion commented May 20, 2018

The wiki in question was https://dandwiki.com . If memory serves, I think I ended up getting around the error by specifying certain namespaces and/or manually editing the list that was generated. Admittedly, I have not tried it again since my last post.

@nemobis
Copy link
Member

nemobis commented May 21, 2018 via email

@SgtLion
Copy link

SgtLion commented May 21, 2018

That sounds quite possible, in fairness. I did find a way to archive all the pages in the end, though I think it was through other means. As a current admin on that wiki, let me know if I can be of any help with working out the problem cases~

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

3 participants