Page MenuHomePhabricator

PageNotSaved exceptions when trying to put pages
Closed, InvalidPublic

Description

Author: rado.md92

Description:
Hi there,
I've recently migrated to Pywikipedia 2.0, and I sometimes got a PageNotSaved exception when attempting to do save page:

  • Saved the page ''pofienidors'': it doesn't exist (which is obvious as it is to be created!).

In the traceback below, "put" method is called with some text, some summary and minorEdit set to False.

File "C:\..\pywikibot\page.py", line 858, in put
  async=async, callback=callback, **kwargs)
File "C:\..\pywikibot\page.py", line 781, in save
  **kwargs)
File "C:\..\pywikibot\page.py", line 806, in _save
  raise pywikibot.PageNotSaved("%s: %s" %(link, err))

pywikibot.exceptions.PageNotSaved: [[poifienidors]]: Page [[mg:poifienidors]] doesn't exist.

According to the code, callback and async are assumed to be set to None (their default value).

Also note that these errors seem to appear randomly: on the same page, it may work... or not.

Any explanations?


Version: core-(2.0)
Severity: normal
OS: Windows 7
Platform: PC

Details

Reference
bz53698

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:45 AM
bzimport set Reference to bz53698.
bzimport added a subscriber: Unknown Object (????).

(In reply to comment #0)

Hi there,
I've recently migrated to Pywikipedia 2.0, and I sometimes got a PageNotSaved
exception when attempting to do save page:

  • Saved the page ''pofienidors'': it doesn't exist (which is obvious as it is

to be created!).

In the traceback below, "put" method is called with some text, some summary
and
minorEdit set to False.

File "C:\..\pywikibot\page.py", line 858, in put
  async=async, callback=callback, **kwargs)
File "C:\..\pywikibot\page.py", line 781, in save
  **kwargs)
File "C:\..\pywikibot\page.py", line 806, in _save
  raise pywikibot.PageNotSaved("%s: %s" %(link, err))

pywikibot.exceptions.PageNotSaved: [[poifienidors]]: Page [[mg:poifienidors]]
doesn't exist.

According to the code, callback and async are assumed to be set to None
(their
default value).

Also note that these errors seem to appear randomly: on the same page, it may
work... or not.

Any explanations?

Can you please post the relevant code?

This is not the current framework code. Could you please verify.