viewtube icon indicating copy to clipboard operation
viewtube copied to clipboard

Unexpected token (1:47)

Open alienbob opened this issue 1 year ago • 5 comments

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

alienbob avatar Jul 10 '24 19:07 alienbob

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

ac1mx avatar Jul 10 '24 22:07 ac1mx

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

patgruber avatar Jul 11 '24 14:07 patgruber

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

patgruber avatar Aug 30 '24 22:08 patgruber

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.

alienbob avatar Aug 31 '24 08:08 alienbob

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

patgruber avatar Aug 31 '24 10:08 patgruber