ViewTube / viewtube

▶️ ViewTube: The open source, privacy-conscious way to enjoy your favorite YouTube content. Docs: https://viewtube.wiki, Status: https://uptime.viewtube.io
https://viewtube.io
GNU Affero General Public License v3.0
1.28k stars 73 forks source link

Unexpected token (1:47) #2929

Open alienbob opened 1 month ago

alienbob commented 1 month ago

Describe the Bug

Running ViewTube as a Docker image. Using the 'latest' tag, downloaded a few hours ago. Whenever I click on a video, instead of starting to play, ViewTube shows the error "Unexpected token (1:47)".

In addition, this error shows top-right: Error loading video [GET] "/api/videos/o_jvt7t096E": 400 Bad Request

Steps to Reproduce the Bug

  1. Login to the ViewTube web interface
  2. Search for any video
  3. Click to play the video: the error appears

Expected Behaviour

I would expect that the video starts streaming.

Additional Context

This looks like the same issue which was solved in FreeTube a few hours ago: https://github.com/FreeTubeApp/FreeTube/issues/5378

ac1mx commented 1 month ago

This seems to be related to the issue I reported earlier today. I have encountered this same error.

patricgruber commented 1 month ago

I have the same issue. It seems like the FreeTubeApp fix has already been commited with this commit: https://github.com/ViewTube/viewtube/commit/9a97e4f39be0e7d599f3f8148f63917e8a0db67f There just needs to be a new version released for the fix to arrive.

In the meantime you can use the :dev or :nightly docker images. They already include the fix. I tested :dev

To do this just change the image: mauriceo/viewtube:latest to image: mauriceo/viewtube:dev in your docker-compose.yml file and run docker compose pull && docker compose up -d

patricgruber commented 1 week ago

This should be fixed now in the newest release v0.17.0

alienbob commented 1 week ago

Thanks Patric. The error is gone, but now I get the following error a few seconds into the playback: "Video playback error PIPELINE_LOAD_ERROR: An HTTP status code indicating failure was received: 403". Dragging my mouse along the timeline actually shows me thumbnails of the complete video, just an actual play back is no longer possible after above error. This happens to any video I try.

patricgruber commented 1 week ago

Might be this issue: https://github.com/ViewTube/viewtube/issues/2952