question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug encountered during accessing local Wiki

See original GitHub issue
Python 3.5.2 (default, Oct  8 2019, 13:06:37) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from mediawiki import MediaWiki
>>> mw = MediaWiki(url="http://192.168.10.3:10080/mywiki/api.php")
Traceback (most recent call last):
  File "/XXXXXXX/barrust-mediawiki/mediawiki/mediawiki/mediawiki.py", line 92, in __init__
    self._get_site_info()
  File "/XXXXXXX/barrust-mediawiki/mediawiki/mediawiki/mediawiki.py", line 868, in _get_site_info
    raise MediaWikiException("Missing query in response")
mediawiki.exceptions.MediaWikiException: An unknown error occured: "Missing query in response". Please report it on GitHub!

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/XXXXXXX/barrust-mediawiki/mediawiki/mediawiki/mediawiki.py", line 94, in __init__
    raise MediaWikiAPIURLError(url)
mediawiki.exceptions.MediaWikiAPIURLError: http://192.168.10.3:10080/mywiki/api.php is not a valid MediaWiki API URL

Wiki is valid, works perfectly, API is enabled. The Wiki version is quite recent: 1.33.0 Hm, so what do do now?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
barrustcommented, Apr 22, 2020

Wonderful! I released a new version and uploaded to pypi! @jkpubsrc if this didn’t resolve your issue, please reopen this ticket.

0reactions
jtmullencommented, Apr 21, 2020

@barrust was just able to give it a try, seems to work perfectly! I did try both passing in the url, username, and password at initialization and via set_api_url after initialization and both were able to successfully login and access the wiki without issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bugs and Troubleshooting - Champaign-Urbana - LocalWiki
This page describes bugs encountered within the CU Wiki (and potentially the localwiki in general). Please read through the headings to make sure...
Read more >
Manual:Common errors and symptoms - MediaWiki
MediaWiki Errors · All pages have no content, but when editing a page the wiki text is there · Image Thumbnails not working...
Read more >
Software bug - Wikipedia
A software bug is an error, flaw or fault ; Bugs in software can arise from mistakes and errors made in interpreting and...
Read more >
Wikipedia:Bug reports and feature requests
The bug report management tool of Phabricator is called Maniphest. Bug reports and feature requests that are not directly related to the MediaWiki...
Read more >
List of software bugs - Wikipedia
Many software bugs are merely annoying or inconvenient but some can have extremely serious consequences – either financially or as a threat to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found