Page MenuHomePhabricator

OperationFailedException in ApiEdit.CheckForErrors
Closed, DuplicatePublic

Description

description:
This exception was reported by @BD2412 on English Wikipedia in this diff.

workaround:

Exception:OperationFailedException
Message:`Operation 'login' ended with result 'NeedToken'. Xml: '<?xml version="1.0"?><api><warnings><login xml:space="preserve">Fetching a token via action=login is deprecated. Use action=query&amp;meta=tokens&amp;type=login instead.</login></warnings><login result="NeedToken" token="3103ebc665bde27479bc20476f81ddd556be770b+\" cookieprefix="enwiki" sessionid="n0k74h27cvjpc0d18rf6v6dagmlg0381" /></api>'`
Call stack:<pre> at WikiFunctions.API.ApiEdit.CheckForErrors(String xml, String action) at WikiFunctions.API.ApiEdit.Login(String username, String password, String domain) at WikiFunctions.Profiles.AWBProfilesForm.PerformLogin(String username, String password)</pre>

OS: Microsoft Windows NT 6.1.7601 Service Pack 1
version: AutoWikiBrowser (5.7.0.0), WikiFunctions (5.7.0.0), revision 11328 (2015-07-14 19:56:59)
net: 2.0.50727.5485
duplicate:
site: https://en.wikipedia.org

Event Timeline

Meno25 created this task.Feb 14 2016, 3:09 PM
Meno25 raised the priority of this task from to Needs Triage.
Meno25 updated the task description. (Show Details)
Restricted Application added a subscriber: StudiesWorld. · View Herald TranscriptFeb 14 2016, 3:09 PM
Restricted Application removed a subscriber: Liuxinyu970226. · View Herald TranscriptFeb 14 2016, 3:10 PM