Background information:
- Recently, archive.org faced several cyberattacks. See en:Internet Archive#Cyberattacks for details.
- Some archive.org services such as openlibrary.org are still offline. See https://archive.org/ and https://openlibrary.org/
- When cosmetic_changes.py works on a page that has links to archive.org or openlibrary.org, the bot gives a 503 Server Error: Service Temporarily Unavailable response.
Command line:
python pwb.py cosmetic_changes -always -newpages -lang:arz
Output:
>>> جون هاستينجز، بارون هاستينجز الأول <<<
ERROR: Traceback (most recent call last):
File "C:\Users\Mohammed\Downloads\core\pywikibot\data\api\_requests.py", line 689, in _http_request
response = http.request(self.site, uri=uri,
method='GET' if use_get else 'POST',
data=data, headers=headers, **kwargs)
File "C:\Users\Mohammed\Downloads\core\pywikibot\comms\http.py", line 283, in request
r = fetch(baseuri, headers=headers, **kwargs)
File "C:\Users\Mohammed\Downloads\core\pywikibot\comms\http.py", line 457, in fetch
callback(response)
~~~~~~~~^^^^^^^^^^
File "C:\Users\Mohammed\Downloads\core\pywikibot\comms\http.py", line 353, in error_handling_callback
raise ServerError(
f'{response.status_code} Server Error: {response.reason}')
pywikibot.exceptions.ServerError: 503 Server Error: Service Temporarily Unavailable
WARNING: Waiting 5.0 seconds before retrying.
ERROR: Traceback (most recent call last):
File "C:\Users\Mohammed\Downloads\core\pywikibot\data\api\_requests.py", line 689, in _http_request
response = http.request(self.site, uri=uri,
method='GET' if use_get else 'POST',
data=data, headers=headers, **kwargs)
File "C:\Users\Mohammed\Downloads\core\pywikibot\comms\http.py", line 283, in request
r = fetch(baseuri, headers=headers, **kwargs)
File "C:\Users\Mohammed\Downloads\core\pywikibot\comms\http.py", line 457, in fetch
callback(response)
~~~~~~~~^^^^^^^^^^
File "C:\Users\Mohammed\Downloads\core\pywikibot\comms\http.py", line 353, in error_handling_callback
raise ServerError(
f'{response.status_code} Server Error: {response.reason}')
pywikibot.exceptions.ServerError: 503 Server Error: Service Temporarily Unavailable
WARNING: Waiting 10.0 seconds before retrying.
ERROR: Traceback (most recent call last):
File "C:\Users\Mohammed\Downloads\core\pywikibot\data\api\_requests.py", line 689, in _http_request
response = http.request(self.site, uri=uri,
method='GET' if use_get else 'POST',
data=data, headers=headers, **kwargs)
File "C:\Users\Mohammed\Downloads\core\pywikibot\comms\http.py", line 283, in request
r = fetch(baseuri, headers=headers, **kwargs)
File "C:\Users\Mohammed\Downloads\core\pywikibot\comms\http.py", line 457, in fetch
callback(response)
~~~~~~~~^^^^^^^^^^
File "C:\Users\Mohammed\Downloads\core\pywikibot\comms\http.py", line 353, in error_handling_callback
raise ServerError(
f'{response.status_code} Server Error: {response.reason}')
pywikibot.exceptions.ServerError: 503 Server Error: Service Temporarily Unavailable
WARNING: Waiting 20.0 seconds before retrying.
ERROR: Traceback (most recent call last):
File "C:\Users\Mohammed\Downloads\core\pywikibot\data\api\_requests.py", line 689, in _http_request
response = http.request(self.site, uri=uri,
method='GET' if use_get else 'POST',
data=data, headers=headers, **kwargs)
File "C:\Users\Mohammed\Downloads\core\pywikibot\comms\http.py", line 283, in request
r = fetch(baseuri, headers=headers, **kwargs)
File "C:\Users\Mohammed\Downloads\core\pywikibot\comms\http.py", line 457, in fetch
callback(response)
~~~~~~~~^^^^^^^^^^
File "C:\Users\Mohammed\Downloads\core\pywikibot\comms\http.py", line 353, in error_handling_callback
raise ServerError(
f'{response.status_code} Server Error: {response.reason}')
pywikibot.exceptions.ServerError: 503 Server Error: Service Temporarily Unavailable
WARNING: Waiting 40.0 seconds before retrying.
ERROR: Traceback (most recent call last):
File "C:\Users\Mohammed\Downloads\core\pywikibot\data\api\_requests.py", line 689, in _http_request
response = http.request(self.site, uri=uri,
method='GET' if use_get else 'POST',
data=data, headers=headers, **kwargs)
File "C:\Users\Mohammed\Downloads\core\pywikibot\comms\http.py", line 283, in request
r = fetch(baseuri, headers=headers, **kwargs)
File "C:\Users\Mohammed\Downloads\core\pywikibot\comms\http.py", line 457, in fetch
callback(response)
~~~~~~~~^^^^^^^^^^
File "C:\Users\Mohammed\Downloads\core\pywikibot\comms\http.py", line 353, in error_handling_callback
raise ServerError(
f'{response.status_code} Server Error: {response.reason}')
pywikibot.exceptions.ServerError: 503 Server Error: Service Temporarily Unavailable
WARNING: Waiting 80.0 seconds before retrying.
ERROR: Traceback (most recent call last):
File "C:\Users\Mohammed\Downloads\core\pywikibot\data\api\_requests.py", line 689, in _http_request
response = http.request(self.site, uri=uri,
method='GET' if use_get else 'POST',
data=data, headers=headers, **kwargs)
File "C:\Users\Mohammed\Downloads\core\pywikibot\comms\http.py", line 283, in request
r = fetch(baseuri, headers=headers, **kwargs)
File "C:\Users\Mohammed\Downloads\core\pywikibot\comms\http.py", line 457, in fetch
callback(response)
~~~~~~~~^^^^^^^^^^
File "C:\Users\Mohammed\Downloads\core\pywikibot\comms\http.py", line 353, in error_handling_callback
raise ServerError(
f'{response.status_code} Server Error: {response.reason}')
pywikibot.exceptions.ServerError: 503 Server Error: Service Temporarily Unavailable
WARNING: Waiting 120.0 seconds before retrying.What should have happened instead?:
- The bot should have skipped such pages and continued working on other pages instead of repeatedly waiting.
Software version:
Pywikibot: [https] r-pywikibot-core (dfaf905, g19134, 2024/10/19, 10:32:30, master)
Release version: 9.5.0.dev2
packaging version: 24.1
mwparserfromhell version: 0.6.6
wikitextparser version: 0.56.3
requests version: 2.32.3
certificate test: ok
Python: 3.13.0 (tags/v3.13.0:60403a5, Oct 7 2024, 09:38:07) [MSC v.1941 64 bit (AMD64)]