Page MenuHomePhabricator

Operation 'login' ended with result 'NeedToken'.
Closed, DuplicatePublic

Assigned To
None
Authored By
Chaduvari
Sep 17 2019, 11:03 AM
Referenced Files
F30381256: Error message at login.png
Sep 17 2019, 3:35 PM
F30381264: Version.png
Sep 17 2019, 3:35 PM
F30381248: Error message1.png
Sep 17 2019, 3:35 PM
F30381195: AWB -About.png
Sep 17 2019, 2:45 PM

Description

While logging into the te.wikipedia.org, got the following error:
description:

workaround:

Exception:OperationFailedException
Message:`Operation 'login' ended with result 'NeedToken'.
Xml: '<?xml version="1.0"?><api><warnings><main xml:space="preserve">Subscribe to the mediawiki-api-announce mailing list at &lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&gt; for notice of API deprecations and breaking changes. Use [[Special:ApiFeatureUsage]] to see usage of deprecated features by your application.</main><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="549c632bad2201de82082d56ea757cf75d80bc1b+\" /></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.5.6.1), WikiFunctions (5.5.6.1), revision ?
net: 2.0.50727.8806

site: https://te.wikipedia.org

AWB was working fine till yesterday. After several issues in changing the site from en.wikipedia.org to te.,wikipedia.org, I downloaded AWB-5561-sitematrix-fix file today and unzipped the same. I could change the project to te.wikipedia.org from options menu. Page list is also populated. Regex typos are also loaded. But login is throwing errors.

Event Timeline

Hi @Chaduvari, what is AWB-5561-sitematrix-fix file? Where to find AWB-5561-sitematrix-fix file? Please always include clear steps and links. Thanks :)

This issue might be related to T233070, or not...

Hi @Aklapper , I am sorry.., I thought it is a well known file. Here are the details..

It is a zip file consisting of the following files:

  • AutoWikiBrowser.exe
  • AutoWikiBrowser.exe.config
  • AWBUpdater.exe
  • Newtonsoft.Json.dll
  • WikiFunctions.dll

I downloaded this file from http://tools.freeside.sk/download/AWB-5561-sitematrix-fix.zip. This link is referred by @Teslaton at T99059

The error message shown in T233070 was appearing for me too. But after using the above files (bundled in AWB-5561-sitematrix-fix.zip) this error is not coming. And my AWB About screen is here.

AWB -About.png (340×516 px, 36 KB)

Thanks for the quick response.

A 5.5.6.1 version isn't going to work anyway, as it's a really old version...

So I'd be suggesting to mark this as invalid, unless you can replicate on a version that is actually enabled...

@Reedy, downloaded version 6.0.0.1. and unzipped in a new folder in C drive. Version:

Version.png (336×515 px, 35 KB)

When application is launched for the first time, following error message appeared:

Error message1.png (244×476 px, 44 KB)

The same error appeared when I tried to change the site from en.wikipedia.org to te.wikipedia.org

The same error appeared when tried to login too. After closing this error dialog, the following error message appeared:

Error message at login.png (185×423 px, 20 KB)

But my internet connection is working fine.

Closed the application and opened it again. Same errors appeared again.

I did not delete the old version while working with this new version.

@Reedy, I saw T233070. I am a non-tech guy and could not understand the solution. I could see that a line is to be changed in siteinfo.cs file. But I have no clue on how to implement the change in my system. I could not locate this file in the folder. Can you please help me implement the solution.

@Reedy, I saw T233070. I am a non-tech guy and could not understand the solution. I could see that a line is to be changed in siteinfo.cs file. But I have no clue on how to implement the change in my system. I could not locate this file in the folder. Can you please help me implement the solution.

Usually wait for someone to make a new release, as those are the code source files, which are compiled into the executables to be run

I've not finished fixing the issue though