Internal error in ApiLogin::execute: Unhandled case value

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Internal error in ApiLogin::execute: Unhandled case value

Sergey Vladimirov
Hi,
 
I'm using api.php for a long time (with bot account), but for last 2-3 weeks instead of usual login response my bot has the following message:

<?xml version="1.0" encoding="utf-8"?><api><error code="internal_api_error_MWException" info="Exception Caught: Internal error in ApiLogin::execute: Unhandled case value">
#0 /usr/local/apache/common-local/php-1.5/includes/api/ApiBase.php(686): wfDebugDieBacktrace('Internal error ...')
#1 /usr/local/apache/common-local/php-1.5/includes/api/ApiLogin.php(143): ApiBase::dieDebug('ApiLogin::execu...', 'Unhandled case ...')
#2 /usr/local/apache/common-local/php-1.5/includes/api/ApiMain.php(412): ApiLogin-&gt;execute()
#3 /usr/local/apache/common-local/php-1.5/includes/api/ApiMain.php(253): ApiMain-&gt;executeAction()
#4 /usr/local/apache/common-local/php-1.5/includes/api/ApiMain.php(237): ApiMain-&gt;executeActionWithErrorHandling()
#5 /usr/local/apache/common-local/php-1.5/api.php(77): ApiMain-&gt;execute()
#6 /usr/local/apache/common-local/live-1.5/api.php(3): require('/usr/local/apac...')
#7 {main}
</error></api>

(ru.wikipedia.org, login:Secretary, user account groups: autoconfirmed, bots)
In 20% of cases login success. Can anyone help me to resolve this issue?

--
Sergey Vladimirov

_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Reply | Threaded
Open this post in threaded view
|

Re: Internal error in ApiLogin::execute: Unhandled case value

Max Semenik
On 14.08.2008, 12:12 Sergey wrote:

> Hi,
>  
>  
>  
> I'm using api.php for a long time (with bot account), but for last
> 2-3 weeks instead of usual login response my bot has the following message:
>  
> <?xml version="1.0" encoding="utf-8"?><api><error
> code="internal_api_error_MWException" info="Exception Caught:
> Internal error in ApiLogin::execute: Unhandled case value">

Login API doesn't handle throttling. I posted a patch to
https://bugzilla.wikimedia.org/show_bug.cgi?id=15162

Though it's not clear why your bot hits throttling so often.
Does it have to log in every 5 minutes?


--
Best regards,
  Max Semenik ([[User:MaxSem]])


_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Reply | Threaded
Open this post in threaded view
|

Re: Internal error in ApiLogin::execute: Unhandled case value

Sergey Vladimirov
Max,
 
Bot is executing several tasks in different wikis. Every tasks is executed in distinct JVW, so incorrect behaviour of single task won't broke other tasks. All tasks are listed in one .bat (.sh) file.
 
Single task execution time is differs from 30 seconds to 5-7 minutes.
 
Sergey.
On Thu, Aug 14, 2008 at 1:04 PM, Max Semenik <[hidden email]> wrote:
On 14.08.2008, 12:12 Sergey wrote:

> Hi,
>
>  
>
> I'm using api.php for a long time (with bot account), but for last
> 2-3 weeks instead of usual login response my bot has the following message:
>
> <?xml version="1.0" encoding="utf-8"?><api><error
> code="internal_api_error_MWException" info="Exception Caught:
> Internal error in ApiLogin::execute: Unhandled case value">

Login API doesn't handle throttling. I posted a patch to
https://bugzilla.wikimedia.org/show_bug.cgi?id=15162

Though it's not clear why your bot hits throttling so often.
Does it have to log in every 5 minutes?


--
Best regards,
 Max Semenik ([[User:MaxSem]])


_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api



--
Sergey Vladimirov

_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api