kolaCZek / tesla-sentry-notifier

https://hub.docker.com/r/kolaczek/tesla-sentry-notifier
4 stars 0 forks source link

Crash after 2.5 hours running #4

Closed xljeff closed 2 months ago

xljeff commented 2 months ago

Thank you for creating and sharing this program! After installation and adjustment, it's working properly. I've also tested it and confirmed that it can successfully publish messages through my own ntfy server. However, after running for about 2.5 hours, the container automatically stopped. Upon examining the error message, I found the following:

2024-08-24T21:55:32.717545467Z stdout requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='owner-api.teslamotors.com', port=443): Read timed out. (read timeout=10)
2024-08-24T21:55:32.717378627Z stdout raise ReadTimeout(e, request=request)
2024-08-24T21:55:32.716940694Z stdout File "/usr/local/lib/python3.12/site-packages/requests/adapters.py", line 713, in send
2024-08-24T21:55:32.716888006Z stdout ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-08-24T21:55:32.716758341Z stdout r = adapter.send(request, **kwargs)
2024-08-24T21:55:32.716268632Z stdout File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 703, in send
2024-08-24T21:55:32.716203294Z stdout ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-08-24T21:55:32.716007428Z stdout resp = self.send(prep, **send_kwargs)
2024-08-24T21:55:32.715262552Z stdout File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 589, in request
2024-08-24T21:55:32.715198614Z stdout ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-08-24T21:55:32.715090012Z stdout return super(OAuth2Session, self).request(
2024-08-24T21:55:32.711091630Z stdout File "/usr/local/lib/python3.12/site-packages/requests_oauthlib/oauth2_session.py", line 566, in request
2024-08-24T21:55:32.711024991Z stdout ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-08-24T21:55:32.710767424Z stdout response = super(Tesla, self).request(method, url, **kwargs)
2024-08-24T21:55:32.710491044Z stdout File "/usr/local/lib/python3.12/site-packages/teslapy/init.py", line 150, in request
2024-08-24T21:55:32.710271240Z stdout ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-08-24T21:55:32.710184776Z stdout return self.request(endpoint['TYPE'], uri, serialize,
2024-08-24T21:55:32.709798870Z stdout File "/usr/local/lib/python3.12/site-packages/teslapy/init.py", line 371, in api
2024-08-24T21:55:32.709722493Z stdout ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-08-24T21:55:32.709487289Z stdout return self.tesla.api(name, {'vehicle_id': self['id_s']}, **kwargs)
2024-08-24T21:55:32.709000306Z stdout File "/usr/local/lib/python3.12/site-packages/teslapy/init.py", line 491, in api
2024-08-24T21:55:32.708929967Z stdout ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-08-24T21:55:32.708635162Z stdout self.update(self.api('VEHICLE_DATA', endpoints=endpoints)['response'])
2024-08-24T21:55:32.701935520Z stdout File "/usr/local/lib/python3.12/site-packages/teslapy/init.py", line 553, in get_vehicle_data
2024-08-24T21:55:32.701883894Z stdout ^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-08-24T21:55:32.701776480Z stdout vehicle_state = vehicle.get_vehicle_data()['vehicle_state']
2024-08-24T21:55:32.701700516Z stdout File "/usr/src/app/./main.py", line 167, in main
2024-08-24T21:55:32.701630740Z stdout main()
2024-08-24T21:55:32.701546726Z stdout File "/usr/src/app/./main.py", line 229, in 
2024-08-24T21:55:32.701473137Z stdout Traceback (most recent call last):
2024-08-24T21:55:32.701406474Z stdout  
2024-08-24T21:55:32.701114781Z stdout During handling of the above exception, another exception occurred:
2024-08-24T21:55:32.701044830Z stdout  
2024-08-24T21:55:32.700700586Z stdout urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='owner-api.teslamotors.com', port=443): Read timed out. (read timeout=10)
2024-08-24T21:55:32.700624823Z stdout raise ReadTimeoutError(
2024-08-24T21:55:32.700257204Z stdout File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 369, in _raise_timeout
2024-08-24T21:55:32.700112714Z stdout self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
2024-08-24T21:55:32.699703844Z stdout File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 538, in _make_request
2024-08-24T21:55:32.699641743Z stdout ^^^^^^^^^^^^^^^^^^^
2024-08-24T21:55:32.699546904Z stdout response = self._make_request(
2024-08-24T21:55:32.699220798Z stdout File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 789, in urlopen
2024-08-24T21:55:32.699156022Z stdout raise value
2024-08-24T21:55:32.699078996Z stdout File "/usr/local/lib/python3.12/site-packages/urllib3/util/util.py", line 39, in reraise
2024-08-24T21:55:32.699008969Z stdout ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-08-24T21:55:32.698720864Z stdout raise reraise(type(error), error, _stacktrace)
2024-08-24T21:55:32.698321382Z stdout File "/usr/local/lib/python3.12/site-packages/urllib3/util/retry.py", line 474, in increment
2024-08-24T21:55:32.698271732Z stdout ^^^^^^^^^^^^^^^^^^
2024-08-24T21:55:32.698204593Z stdout retries = retries.increment(
2024-08-24T21:55:32.698125154Z stdout File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 843, in urlopen
2024-08-24T21:55:32.698062040Z stdout ^^^^^^^^^^^^^
2024-08-24T21:55:32.697917225Z stdout resp = conn.urlopen(
2024-08-24T21:55:32.686372662Z stdout File "/usr/local/lib/python3.12/site-packages/requests/adapters.py", line 667, in send
2024-08-24T21:55:32.686304536Z stdout Traceback (most recent call last):
2024-08-24T21:55:32.686242760Z stdout  
2024-08-24T21:55:32.686165408Z stdout The above exception was the direct cause of the following exception:
2024-08-24T21:55:32.686095420Z stdout  
2024-08-24T21:55:32.685995955Z stdout TimeoutError: The read operation timed out
2024-08-24T21:55:32.685927317Z stdout ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-08-24T21:55:32.685526847Z stdout return self._sslobj.read(len, buffer)
2024-08-24T21:55:32.684474829Z stdout File "/usr/local/lib/python3.12/ssl.py", line 1104, in read
2024-08-24T21:55:32.684420078Z stdout ^^^^^^^^^^^^^^^^^^^^^^^^^
2024-08-24T21:55:32.684167061Z stdout return self.read(nbytes, buffer)
2024-08-24T21:55:32.671699169Z stdout File "/usr/local/lib/python3.12/ssl.py", line 1252, in recv_into
2024-08-24T21:55:32.671620568Z stdout ^^^^^^^^^^^^^^^^^^^^^^^
2024-08-24T21:55:32.671328613Z stdout return self._sock.recv_into(b)
2024-08-24T21:55:32.662555560Z stdout File "/usr/local/lib/python3.12/socket.py", line 708, in readinto
2024-08-24T21:55:32.662382969Z stdout ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-08-24T21:55:32.661932037Z stdout line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
2024-08-24T21:55:32.661431753Z stdout File "/usr/local/lib/python3.12/http/client.py", line 292, in _read_status
2024-08-24T21:55:32.661357914Z stdout ^^^^^^^^^^^^^^^^^^^
2024-08-24T21:55:32.661137273Z stdout version, status, reason = self._read_status()
2024-08-24T21:55:32.660503662Z stdout File "/usr/local/lib/python3.12/http/client.py", line 331, in begin
2024-08-24T21:55:32.660050241Z stdout response.begin()
2024-08-24T21:55:32.632198194Z stdout File "/usr/local/lib/python3.12/http/client.py", line 1428, in getresponse
2024-08-24T21:55:32.632062179Z stdout ^^^^^^^^^^^^^^^^^^^^^
2024-08-24T21:55:32.631832237Z stdout httplib_response = super().getresponse()
2024-08-24T21:55:32.620886059Z stdout File "/usr/local/lib/python3.12/site-packages/urllib3/connection.py", line 464, in getresponse
2024-08-24T21:55:32.620817333Z stdout ^^^^^^^^^^^^^^^^^^
2024-08-24T21:55:32.620600842Z stdout response = conn.getresponse()
2024-08-24T21:55:32.595080935Z stdout File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 536, in _make_request
2024-08-24T21:55:32.594250146Z stdout Traceback (most recent call last):
kolaCZek commented 2 months ago

Thank you for report... I will look at it. ;)

kolaCZek commented 2 months ago

Should be fixed now... ;)

xljeff commented 2 months ago

Thank you it's work

xljeff commented 1 week ago

my refresh token is expire , but i can't refresh to relogin again how can i refresh my token ? thank you

Martin Kolací @.***> 於 2024年8月27日 週二 下午11:08寫道:

Should be fixed now... ;)

— Reply to this email directly, view it on GitHub https://github.com/kolaCZek/tesla-sentry-notifier/issues/4#issuecomment-2312829700, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB5JANR6ACK4R3BFAIIIHNLZTSI65AVCNFSM6AAAAABNCER6B2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJSHAZDSNZQGA . You are receiving this because you authored the thread.Message ID: @.***>