Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection issues, followed by lock-up #3

Open
cohaolain opened this issue Jan 4, 2020 · 1 comment
Open

Connection issues, followed by lock-up #3

cohaolain opened this issue Jan 4, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@cohaolain
Copy link
Owner

Issue

Application is encountering connection issues (might be rate-limiting, etc.) and is later locking up complete, but not crashing.

Log is included here: ir-logger.log

So far I've been unable to find out specifically why the application is locking up after several retry attempts. Unfortunately I don't have info yet as to the timescale of the issues in the above log, if they were linked or how soon after these errors the application locked up after these errors occurred.

For now, I'm going to restart the logger, it's been down all Christmas unfortunately... I haven't figured out what caused the lock-up yet but if I don't realise soon, perhaps the improvements in #1 will help accelerate debugging this issue.

Proposed Fix

None yet.

@cohaolain cohaolain added the bug Something isn't working label Jan 4, 2020
@cohaolain cohaolain pinned this issue Jan 4, 2020
@cohaolain cohaolain changed the title Connection issues, followed by lock up Connection issues, followed by lock-up Jan 4, 2020
@cohaolain
Copy link
Owner Author

Application now terminated and restarted:

^CTraceback (most recent call last):
  File "./logger.py", line 53, in <module>
    raw_data = getData()
  File "./logger.py", line 19, in getData
    return requests.get(url).content
  File "/usr/local/lib/python3.8/site-packages/requests/api.py", line 75, in get
    return request('get', url, params=params, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 686, in send
    r.content
  File "/usr/local/lib/python3.8/site-packages/requests/models.py", line 828, in content
    self._content = b''.join(self.iter_content(CONTENT_CHUNK_SIZE)) or b''
  File "/usr/local/lib/python3.8/site-packages/requests/models.py", line 750, in generate
    for chunk in self.raw.stream(chunk_size, decode_content=True):
  File "/usr/local/lib/python3.8/site-packages/urllib3/response.py", line 564, in stream
    data = self.read(amt=amt, decode_content=decode_content)
  File "/usr/local/lib/python3.8/site-packages/urllib3/response.py", line 507, in read
    data = self._fp.read(amt) if not fp_closed else b""
  File "/usr/local/lib/python3.8/http/client.py", line 454, in read
    n = self.readinto(b)
  File "/usr/local/lib/python3.8/http/client.py", line 498, in readinto
    n = self.fp.readinto(b)
  File "/usr/local/lib/python3.8/socket.py", line 669, in readinto
    return self._sock.recv_into(b)
KeyboardInterrupt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant