alebupal / tvspy

Aplicación web sobre Monitorizacion para tvheadend - Web application about Monitoring for tvheadend
GNU General Public License v3.0
7 stars 4 forks source link

No active plays #31

Open kapiszon53 opened 3 days ago

kapiszon53 commented 3 days ago

Hi, first of all thanks for developing this, I was waiting long time for a good statistics app.

My issue is that the app is not showing active plays. Everything else seems to be working fine. When I change the channels, this appears for a second and then disappears, showing "No active plays" despite playing a channel: Zrzut ekranu 2024-11-13 144436

Thank you!

alebupal commented 3 days ago

hi! In the container log does it tell you that it has connected to the websocket? image

kapiszon53 commented 3 days ago

Yes it does image

alebupal commented 3 days ago

the app and tvheadend are on the same machine? I mean if they have the same IP and different ports

kapiszon53 commented 3 days ago

They are on the same host within different docker containers

alebupal commented 3 days ago

Can you send me what the backend receives from the websocket? I'll write you the steps:

  1. docker exec -i -t tvspy /bin/sh -> tvspy is the name of your container
  2. vi /app/backend/src/routes/subcriptions.js
  3. Press enter to be able to write
  4. On line 34 https://github.com/alebupal/tvspy/blob/53b7519f8963ed2a762c57506e1d07984b0fb887/tvspy-backend/src/routes/subcriptions.js#L34 write console.log(rawMessage)
  5. Press esc and type to save and exit :wq
  6. exitto exit the container
  7. docker restart tvspy

And now pass me what appears in the docker log when you start a reproduction

thank you!

pd: If you have Telegram you can write to me there and we can see it faster. @alebupal is my username.

kapiszon53 commented 2 days ago

So this is the output, fresh after container restart and starting one reproduction:

https://pastebin.com/pHrdq9Gq

alebupal commented 2 days ago

I am seeing that the connection to the socket is correct. You have data in the "Registry" option, right?

kapiszon53 commented 2 days ago

Yes, everything else seems to be working well. Just no active plays image image

alebupal commented 2 days ago

Ok, so it's a front-end problem. What browser do you use?

If you open the element inspector (right click on the web, inspect) you get this comment? WebSocket - Conectado al servidor image

kapiszon53 commented 2 days ago

I do. I am using Chrome: image

edit: I also tried incognito and edge, same behavior

alebupal commented 2 days ago

Ok, I'm going to prepare a new version in the next few days so I can activate a debug mode to see the trace of where it fails. In the frontend it's not so easy to modify files and see the error.

kapiszon53 commented 2 days ago

Looking forward to that, thanks. Let me know if you need more information and I'll provide

alebupal commented 2 days ago

I have added the debug mode in the :dev tag, I still need to test a few things but you can already see the trace in the inspector to see if we can find the problem.