Page MenuHomePhabricator

Non-JSON response (HTTP error 503) on orphanize_redirect.py
Closed, InvalidPublic

Description

Following script:

https://github.com/diegmonti/labs-tools-incolabot/blob/master/orphanize_redirects.py

after some edits, about 60-65, it continuously return - now it's running on tool "irishbot":

"""
WARNING: Http response status 503
WARNING: Non-JSON response received from server wikipedia:it; the server may be down.
Set gpllimit = ['2500']
WARNING: Waiting 5 seconds before retrying.
WARNING: Http response status 503
WARNING: Non-JSON response received from server wikipedia:it; the server may be down.
Set gpllimit = ['2500']
WARNING: Waiting 10 seconds before retrying.
WARNING: Http response status 503
WARNING: Non-JSON response received from server wikipedia:it; the server may be down.
Set gpllimit = ['2500']
WARNING: Waiting 20 seconds before retrying.
[etc...]
"""

I really don't understand what the problem could be.

Event Timeline

.avgas created this task.Feb 12 2018, 4:14 PM
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. · View Herald TranscriptFeb 12 2018, 4:14 PM
Zoranzoki21 added a subscriber: Zoranzoki21.EditedFeb 12 2018, 9:58 PM

Hi @.avgas maybe in it time, when you runned bot, replag happened. Does this working now normally?

If it happening again, try to add in your user-config.py

put_throttle = 0

Hi @Zoranzoki21, bot returned that error at different time, along many days. How could -pt:0 solve it?

Hi @Zoranzoki21, bot returned that error at different time, along many days. How could -pt:0 solve it?

This will maybe help to bot no return errors and to work without problems. On my wiki it is resolved problem like this.

Ok, also with

put_throttle = 0

it gets same stuck. :(

Hmm..

gpllimit = ['2500']?

Xqt closed this task as Invalid.Feb 17 2018, 12:08 PM
Xqt added a subscriber: Xqt.

The Response indicates the problem: Http response status 503, see https://de.wikipedia.org/wiki/HTTP-Statuscode#5xx_–_Server-Fehler, the server may be down

The api call reduces the limit due to this warning and retries.

This does not have to do anything with put_throttle by the way.

Nothing to do on pywikibots side I guess.