Giter VIP home page Giter VIP logo

Comments (11)

tosher avatar tosher commented on June 2, 2024

Thanks for your comment. I will try to check this issue.

from mediawiker.

tosher avatar tosher commented on June 2, 2024

Do you have this message in console or something another?

File ".\mwclient\httpmw.py", line 192, in request
    raise errors.HTTPStatusError(res.status, res)
mwclient.errors.HTTPStatusError: (404, httplib.HTTPResponse instance at 0x00000000045DE208)

from mediawiker.

drjackyl avatar drjackyl commented on June 2, 2024

Oh my goodness m(

I completely forgot the console. Embarrassing :D Don't usually use it, when using Sublime.

It actually gets a 'readapidenied' from the MediaWiki-API:

Traceback (most recent call last):
  File "./mediawiker.py", line 906, in show_results
  File "./mediawiker.py", line 943, in do_search
  File "./mediawiker.py", line 69, in mw_get_connect
  File "./mwclient/client.py", line 385, in login
    self.site_init()
  File "./mwclient/client.py", line 120, in site_init
    meta = self.api('query', meta='siteinfo|userinfo', siprop='general|namespaces', uiprop='groups|rights')
  File "./mwclient/client.py", line 186, in api
    res = self.handle_api_result(info, token=token)
  File "./mwclient/client.py", line 213, in handle_api_result
    raise errors.APIError(info['error']['code'], info['error']['info'], kwargs)
mwclient.errors.APIError: (u'readapidenied', u'You need read permission to use this module', None)    

MediaWiki's API-FAQ sais

Why do I get the readapiedeniederror?
The wiki you're querying contains private content and requires users to log in in order to be able to read all pages. This means that a client needs to be logged in to query any information at all through the API. See the quick start guide for more information. It's not currently possible to query the contents of whitelisted pages without logging in, even though they're available in the regular user interface.

https://www.mediawiki.org/wiki/API:FAQ#do_I_get_the_readapidenied_error.3F

I saved the login-credentials to the user-settings to exclude mistyping of the password. As 'Open page' is working, thus logging in correctly, maybe there's no login prior to searching?

Regards

from mediawiker.

tosher avatar tosher commented on June 2, 2024

Hmm.. The same function used for all features - page opening, posting, search, insert category, etc..
I haven't wiki-site with https only access.. can't process full testing :( On https://mediawiki.org search works fine.

"Without auth and https, it works fine. "
But with auth and without http - works? :)

from mediawiker.

tosher avatar tosher commented on June 2, 2024

And small second question - problem exists on both versions of sublime (2 & 3)?

from mediawiker.

drjackyl avatar drjackyl commented on June 2, 2024

I will setup a test-environment. Can't actually change the corporate-wiki to no-auth or no-https.

I use Sublime 2.

I'll be back with more information. Thx for your effort!

Regards

from mediawiker.

tosher avatar tosher commented on June 2, 2024

Oh, maybe i found bug.. 30 minutes..

from mediawiker.

tosher avatar tosher commented on June 2, 2024

Please try to update plugin and check search.

from mediawiker.

drjackyl avatar drjackyl commented on June 2, 2024

k, ongoing

from mediawiker.

drjackyl avatar drjackyl commented on June 2, 2024

top! Fix confirmed.

from mediawiker.

tosher avatar tosher commented on June 2, 2024

Oo, it's very very good :) It was fantastically stupid bug, thanks for this issue :)

from mediawiker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.