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

Video got lost by ping/pong error #1

Open
DunklerPhoenix opened this issue May 28, 2024 · 1 comment
Open

Video got lost by ping/pong error #1

DunklerPhoenix opened this issue May 28, 2024 · 1 comment

Comments

@DunklerPhoenix
Copy link

Heho
A video notification got lost because of a ping/pong timeout error.
I think the client should try again to push the video to TA if an error occurs.
The "notification received" on the members page could also be a bit misleading in that context.

It was the first notification to my server so it could also be a problem on my site. I will watch it a bit, but in any case I love the idea behind this live notifications. Thank you

  • DP
----------------------------
TUBE ARCHIVIST MEMBER CLIENT
----------------------------
v0.0.3

[startup] all expected environment vars are set
[startup] connecting to TA on url https://tube.domain.tld:443/api/ping/
[startup] TA connection established
[startup] TA answered: {'response': 'pong', 'user': 2, 'version': 'v0.4.8'}
[connect] opening connection to members.tubearchivist.com
[connect][2024-05-26 14:20:37] connection to members.tubearchivist.com established
[error][2024-05-27 00:26:07] Connection to remote host was lost.
[connect][2024-05-27 00:26:17] connection to members.tubearchivist.com established
[closed][2024-05-27 02:22:23] connection to members.tubearchivist.com closed
[closed] status code: 1001
[closed] message: CloudFlare WebSocket proxy restarting

----------------------------
TUBE ARCHIVIST MEMBER CLIENT
----------------------------
v0.0.3

[startup] all expected environment vars are set
[startup] connecting to TA on url https://tube.domain.tld:443/api/ping/
[startup] TA connection established
[startup] TA answered: {'response': 'pong', 'user': 2, 'version': 'v0.4.8'}
[connect] opening connection to members.tubearchivist.com
[connect][2024-05-27 02:22:36] connection to members.tubearchivist.com established
[error][2024-05-27 10:39:44] Connection to remote host was lost.
[connect][2024-05-27 10:39:55] connection to members.tubearchivist.com established
[error][2024-05-27 15:05:34] Connection to remote host was lost.
[connect][2024-05-27 15:05:44] connection to members.tubearchivist.com established
[error][2024-05-27 19:45:11] Connection to remote host was lost.
[connect][2024-05-27 19:45:21] connection to members.tubearchivist.com established
[error][2024-05-28 11:36:14] Connection to remote host was lost.
[connect][2024-05-28 11:36:25] connection to members.tubearchivist.com established
[error][2024-05-28 14:12:51] Connection to remote host was lost.
[connect][2024-05-28 14:13:01] connection to members.tubearchivist.com established
[message][2024-05-28 16:00:23] new message: {'download': ['itBBsQRv0EU']}
[message] video ids sent to TA: {"data":[{"youtube_id":"itBBsQRv0EU","status":"pending"}]}
Traceback (most recent call last):
  File "/app/client.py", line 163, in <module>
    rel.dispatch()
  File "/root/.local/lib/python3.11/site-packages/rel/rel.py", line 228, in dispatch
    registrar.dispatch()
  File "/root/.local/lib/python3.11/site-packages/rel/registrar.py", line 125, in dispatch
    if not self.loop():
           ^^^^^^^^^^^
  File "/root/.local/lib/python3.11/site-packages/rel/registrar.py", line 135, in loop
    t = self.check_timers()
        ^^^^^^^^^^^^^^^^^^^
  File "/root/.local/lib/python3.11/site-packages/rel/registrar.py", line 172, in check_timers
    if not timer.check(t):
           ^^^^^^^^^^^^^^
  File "/root/.local/lib/python3.11/site-packages/rel/listener.py", line 210, in check
    if self.cb(*self.args):
       ^^^^^^^^^^^^^^^^^^^
  File "/root/.local/lib/python3.11/site-packages/websocket/_app.py", line 480, in check
    raise WebSocketTimeoutException("ping/pong timed out")
websocket._exceptions.WebSocketTimeoutException: ping/pong timed out

----------------------------
TUBE ARCHIVIST MEMBER CLIENT
----------------------------
v0.0.3

[startup] all expected environment vars are set
[startup] connecting to TA on url https://tube.domain.tld:443/api/ping/
[startup] TA connection established
[startup] TA answered: {'response': 'pong', 'user': 2, 'version': 'v0.4.8'}
[connect] opening connection to members.tubearchivist.com
[connect][2024-05-28 19:39:15] connection to members.tubearchivist.com established
@bbilly1
Copy link
Member

bbilly1 commented Aug 1, 2024

That is usually when you loose internet connection, or in rare cases, if the server reconnects you. It will retry a few times, but will give up at some point to avoid unneeded spam against the connection API endpoints.

If you are offline, notifications won't get lost, they will get stored on the server for a few days, so next time you connect, you should get the newest notifications.

In the interface, a notification is marked as sent even if you are offline, it will be cached for some time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants