Last modified: 2014-01-01 12:40:58 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T55698, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 53698 - PageNotSaved exceptions when trying to put pages
PageNotSaved exceptions when trying to put pages
Status: RESOLVED INVALID
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
core-(2.0)
PC Windows 7
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-03 10:14 UTC by Andrian. Rado
Modified: 2014-01-01 12:40 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Andrian. Rado 2013-09-03 10:14:48 UTC
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?
Comment 1 Ricordisamoa 2013-09-09 11:22:10 UTC
(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?
Comment 2 xqt 2013-10-21 16:49:26 UTC
This is not the current framework code. Could you please verify.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links