Giter Club home page Giter Club logo

Comments (7)

tosher avatar tosher commented on August 17, 2024

With any page, always?

from mediawiker.

BryghtShadow avatar BryghtShadow commented on August 17, 2024

Yeah, many pages face this problem, but sometimes the page opens up fine on first try.
(Granted, the successful first-time opens may have failed a while ago and I just don't remember it... at least I hope this isn't the case)

from mediawiker.

tosher avatar tosher commented on August 17, 2024

Can't reproduce :(
For example, page https://wreckit-woodhouse.fandom.com/wiki/Apple_Metro_Applen opens without errors for me.

ST, Dev channel, latest 4112

from mediawiker.

BryghtShadow avatar BryghtShadow commented on August 17, 2024

That page loads fine for me as well (haven't managed to reproduce for some arbitrary existing page on that test wiki in this brief session).
I swapped back to see if I could open https://thealchemistcode.fandom.com/wiki/Zwei without issue, and it threw error on first try just now. This page has thrown error for me various times.

Here's my attempt at opening a page on wreckit-woodhouse, swapping wikis back to thealchemistcode, and then opening Zwei. The first try failed, but subsequent attempts succeed:

Page [[Wreck-it_Woodhouse/About_Us]] was opened successfully from "wreckit-woodhouse.fandom.com".
  >>> '''DEBUG''' Get connection from connection manager.
  >>> '''DEBUG''' Cached connection: True
  >>> '''DEBUG''' Get connection from connection manager.
  >>> '''DEBUG''' Cached connection: True
  >>> TypeError exception for get_page: unorderable types: int() > NoneType()
  >>> '''DEBUG''' Get connection from connection manager.
  >>> '''DEBUG''' Cached connection: True
Page [[Zwei]] was opened successfully from "The Alchemist Code Wiki".
  >>> '''DEBUG''' Get connection from connection manager.
  >>> '''DEBUG''' Cached connection: True
  >>> '''DEBUG''' Get connection from connection manager.
  >>> '''DEBUG''' Cached connection: True
Page [[Zwei]] was opened successfully from "The Alchemist Code Wiki".
  >>> '''DEBUG''' Get connection from connection manager.
  >>> '''DEBUG''' Cached connection: True

from mediawiker.

tosher avatar tosher commented on August 17, 2024

Always without errors for me..

Yoy could try to increase timeout value:
retry_timeout (default: 30),
maybe it will help

from mediawiker.

BryghtShadow avatar BryghtShadow commented on August 17, 2024

Thanks, I'll give retry_timeout a go (trying 40 for now).

By the way, when a page fails to load, this gets dumped to ST console (paths truncated for brevity):

Traceback (most recent call last):
  File "...\Mediawiker\mwcommands\mw_utils.py", line 1072, in on_done
    set_timeout_async(self.callback(title), 0)
  File "...\Mediawiker\mediawiker.py", line 148, in get_section_number
    return self.page_open(self.title)
  File "...\Mediawiker\mediawiker.py", line 177, in page_open
    if utils.api.page_can_edit(page):
  File "...\Mediawiker\mwcommands\mw_utils.py", line 538, in page_can_edit
    return page.can('edit')
AttributeError: 'NoneType' object has no attribute 'can'

from mediawiker.

tosher avatar tosher commented on August 17, 2024

It's just result, we received None-object instead of Page-object. I'll add more readable message for this.

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.