Page MenuHomePhabricator

Catch edit API timeout
Open, Needs TriagePublic


These days gets timeouts from the API quite often.

Page [[North Atlantic Aerosols and Marine Ecosystems Study]] saved
[2020-04-11 17:38:24,904] ERROR in bot: perform_bot_edit failed on NOL9
Traceback (most recent call last):
  File "", line 37, in run_bot_on_page
    change_made = perform_bot_edit(page_name, '[[Wikipedia:OABOT|Open access bot]]: {} added to citation with #oabot.'.format(', '.join(set(ids_touched))), proposed_additions, access_token=access_token, site=site)
  File "", line 47, in perform_bot_edit
    new_text = main.get_page_over_api(page_name)
  File "/mnt/nfs/labstore-secondary-tools-project/oabot/www/python/src/oabot/", line 368, in get_page_over_api
  File "/data/project/oabot/www/python/venv/local/lib/python2.7/site-packages/requests/", line 75, in get
    return request('get', url, params=params, **kwargs)
  File "/data/project/oabot/www/python/venv/local/lib/python2.7/site-packages/requests/", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/data/project/oabot/www/python/venv/local/lib/python2.7/site-packages/requests/", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/data/project/oabot/www/python/venv/local/lib/python2.7/site-packages/requests/", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/data/project/oabot/www/python/venv/local/lib/python2.7/site-packages/requests/", line 529, in send
    raise ReadTimeout(e, request=request)
ReadTimeout: HTTPSConnectionPool(host='', port=443): Read timed out. (read timeout=10)

Related Objects

Event Timeline

Nemo_bis created this task.Apr 11 2020, 5:42 PM

This may be related to T249335, I am having a similar issue with the API on metawiki.