Vocab-Apps / anki-language-tools

Anki Language Tools addon
GNU General Public License v3.0
6 stars 0 forks source link

add read timeouts on all requests and check error handling #78

Open sentry-io[bot] opened 2 years ago

sentry-io[bot] commented 2 years ago

ReadTimeout: HTTPSConnectionPool(host='cloud-language-tools-nlp-prod.anki.study', port=443): Read timed out. (...

Sentry Issue: ANKI-LANGUAGE-TOOLS-75

TimeoutError: [Errno 60] Operation timed out
(4 additional frame(s) were not displayed)
...
  File "http/client.py", line 307, in begin
  File "http/client.py", line 268, in _read_status
  File "socket.py", line 669, in readinto
  File "ssl.py", line 1241, in recv_into
  File "ssl.py", line 1099, in read

ReadTimeoutError: HTTPSConnectionPool(host='cloud-language-tools-nlp-prod.anki.study', port=443): Read timed out. (read timeout=None)
(2 additional frame(s) were not displayed)
...
  File "urllib3/util/retry.py", line 532, in increment
  File "urllib3/packages/six.py", line 770, in reraise
  File "urllib3/connectionpool.py", line 699, in urlopen
  File "urllib3/connectionpool.py", line 447, in _make_request
  File "urllib3/connectionpool.py", line 353, in _raise_timeout

ReadTimeout: HTTPSConnectionPool(host='cloud-language-tools-nlp-prod.anki.study', port=443): Read timed out. (read timeout=None)
(4 additional frame(s) were not displayed)
...
  File "requests/api.py", line 119, in post
  File "requests/api.py", line 61, in request
  File "requests/sessions.py", line 542, in request
  File "requests/sessions.py", line 655, in send
  File "requests/adapters.py", line 529, in send

error while getting translation for note_id 1633296141895