Last modified: 2008-09-03 14:27:05 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 T17444, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 15444 - ApiEdit: Unknown error: AS_END
ApiEdit: Unknown error: AS_END
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.14.x
All All
: Normal normal (vote)
: ---
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-09-02 19:30 UTC by Bryan Tong Minh
Modified: 2008-09-03 14:27 UTC (History)
2 users (show)

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


Attachments

Description Bryan Tong Minh 2008-09-02 19:30:07 UTC
The AS_END return code is not caught and thus an unknownerror is thrown.
Comment 1 Roan Kattouw 2008-09-02 20:30:32 UTC
Reminder to self: AS_END is returned when updateArticle() fails. We don't check for insertNewArticle()'s return value, though, while we probably should.
Comment 2 Roan Kattouw 2008-09-03 14:27:05 UTC
Fixed in r40383, but not probably not the way you expected ;)

AS_END is only returned if something weird happens, like an UPDATE on page_latest failing because it was UPDATEd after the edit conflict check. Similar conditions are possible for other write operations (such as move and rollback), and they, too, return 'unknownerror'. As documented on [[mw:API:Errors and warnings]] (added it just now, but it was there when the errors were still listed on separate pages), 'unknownerror' really means that something very weird happened and that you should retry the request.

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


Navigation
Links