[Bug]: SyntaxError: Unexpected token (1:47)
Guidelines
- [X] I have encountered this bug in the latest release of FreeTube.
- [X] I have encountered this bug in the official downloads of FreeTube.
- [X] I have searched the issue tracker for open and closed issues that are similar to the bug report I want to file, without success.
- [X] I have searched the documentation for information that matches the description of the bug I want to file, without success.
- [X] This issue contains only one bug.
Describe the bug
Right now, any video i've tried to open always throws at me SyntaxError: Unexpected token (1:47) and then it falls back to invidious.
Steps to reproduce:
- Go to a video.
- Get instantly hit with the error, which causes FreeTube to fall back to Invidious.
Examples of videos being affected by this error: https://youtu.be/Y_jI_Toq0rI https://youtu.be/1wG1NiqOqPw https://youtu.be/bcyu7RuXqMQ
Expected Behavior
For the video to play normally without error.
Issue Labels
content not loading
FreeTube Version
v0.21.0-nightly-4555 Beta
Operating System Version
Linux Mint 21.3 Cinnamon X.org
Installation Method
.deb
Primary API used
Local API
Last Known Working FreeTube Version (If Any)
No response
Additional Information
Video demonstration:
https://github.com/FreeTubeApp/FreeTube/assets/113867283/a9cd501c-eb48-4e60-a921-c41364c419bf
Shorts and live streams are affected too.
When using the console it gives this error log.
https://github.com/FreeTubeApp/FreeTube/assets/113867283/19244c81-fa9d-491b-a5f6-eaf58bd8d5f0
Nightly Build
- [X] I have encountered this bug in the latest nightly build.
I have encountered exactly the same issue, since about 1 or 2 hours ago. I'm not sure if YouTube changes something...
I've been noticing the same issue on some videos as well. A few hours ago this was occuring on the occasional video but it seems like nearly every video is now giving this message. Switching to a reliable Invidious server is a temporary though still poor workaround.
Getting the same error. The video page will then look like this:
This seems to happen to every video I try.
I have encountered exactly the same issue, since about 1 or 2 hours ago. I'm not sure if YouTube changes something...
based on the fact that NewPipe, Invidious and yt-dlp are partially broken right now because of changes made by YouTube means Youtube must have implemented something drastic for FreeTube to be completely broken (at least for me).
I have encountered exactly the same issue, since about 1 or 2 hours ago. I'm not sure if YouTube changes something...
based on the fact that NewPipe, Invidious and yt-dlp are partially broken right now because of changes made by YouTube means Youtube must have implemented something drastic for FreeTube to be completely broken (at least for me).
All videos on NewPipe suddenly seem to be broken as well. This suggests some kind of major change at YouTube's end.
Identical error 5 mins ago.
Please refrain from commenting as we are already working on a fix. Please just upvote the issue.
Set the Invidious API as your primary API as a temporarily workaround. Try other Invidious instances when an instance isnt working. Some Invidious instances are IP blocked by YouTube.
This fix didn't work for me, please reply if I did not get the settings right.
Invidious API Error (Click to copy): undefined
Invidious API Error (Click to copy): undefined
Invidious API Error (Click to copy): undefined
Invidious API Error (Click to copy): undefined
[image.png]
A SubscriptionsChannelsPlaylistsHistory
SettingsAbout
[image.png]Subscriptions
VIDEOS SHORTS LIVE COMMUNITY
On Tuesday, July 9th, 2024 at 2:27 PM, Tuncay @.***> wrote:
Set the Invidious API as your primary API as a temporarily workaround.
Invidious API isn't working for me either.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
This fix didn't work for me, please reply if I did not get the settings right. Invidious API Error (Click to copy): undefined Invidious API Error (Click to copy):
I had the same error. The Invidious instance you are using does not work, but others do. Change the Invidious instance at "Current Invidious Instance" field and make it to default by clicking "Set Current Instance as Default".
👍 Thanks, that worked!
On Tuesday, July 9th, 2024 at 5:46 PM, Tuncay @.***> wrote:
This fix didn't work for me, please reply if I did not get the settings right. Invidious API Error (Click to copy): undefined Invidious API Error (Click to copy):
I had the same error. The Invidious instance you are using does not work, but others do. Change the Invidious instance at "Current Invidious Instance" field and make it to default by clicking "Set Current Instance as Default".
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
The Invidious instance I used earlier worked fine, and I think up to date Invidious proxies have found a workaround for at least YouTube's previous new restriction a few weeks back. Hopefully the problem will be resolved in the next few days.
inv.tux.pizza currently works well.
The Android app NewPipe gives a more detailed log than FreeTube of what may be going on:
Exception
- User Action: play stream
- Request: Player error[type=ERROR_CODE_IO_BAD_HTTP_STATUS] occurred while playing https://www.youtube.com/watch?v=CanCZktm0TQ
- Content Country: GB
- Content Language: en-GB
- App Language: en_GB
- Service: YouTube
- Version: 0.27.0
- OS: Linux Nokia/ScarletWitch_00EEA/SCW_sprout:13/TKQ1.220807.001/00WW_3_400:user/release-keys 13 - 33
Crash log
com.google.android.exoplayer2.ExoPlaybackException: Source error
at com.google.android.exoplayer2.ExoPlayerImplInternal.handleIoException(ExoPlayerImplInternal.java:644)
at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:616)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.os.HandlerThread.run(HandlerThread.java:67)
Caused by: com.google.android.exoplayer2.upstream.HttpDataSource$InvalidResponseCodeException: Response code: 403
at org.schabi.newpipe.player.datasource.YoutubeHttpDataSource.open(YoutubeHttpDataSource.java:422)
at com.google.android.exoplayer2.upstream.DefaultDataSource.open(DefaultDataSource.java:263)
at com.google.android.exoplayer2.upstream.TeeDataSource.open(TeeDataSource.java:52)
at com.google.android.exoplayer2.upstream.cache.CacheDataSource.openNextSource(CacheDataSource.java:796)
at com.google.android.exoplayer2.upstream.cache.CacheDataSource.open(CacheDataSource.java:609)
at com.google.android.exoplayer2.upstream.StatsDataSource.open(StatsDataSource.java:84)
at com.google.android.exoplayer2.source.chunk.InitializationChunk.load(InitializationChunk.java:99)
at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:412)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
at java.lang.Thread.run(Thread.java:1012)
I think FreeTube and NewPipe both use a similar client. NewPipe has periodically thrown up a similar error to this in the middle of videos for the past couple of weeks, while I hadn't had the same problem in FreeTube, although certain videos have lately stopped buffering unless I refresh them.
The code 403 suggests that YouTube is attempting to block requests from clients that it deems unauthorised.
I'm also noticing a poorer YouTube framerate on the Android version of Firefox than previously. Is this related?
Fix in https://github.com/FreeTubeApp/FreeTube/pull/5384
api error
https://github.com/FreeTubeApp/FreeTube/assets/52818836/2d1faf10-faf8-4331-9974-bb5505ad2454
Fix in #5384
Now we wait until this action end up with build, correct? Latest build related to #5380 and it still have this api issue.
We will do a hotfix release (v0.21.1) when that fix is tested and merged.
Using build #4558 but issue still seems to be happening.
https://github.com/FreeTubeApp/FreeTube/assets/7506514/4137082f-854d-4780-aeed-a5cfa7a3e8d9
Fix has been merged. We aim to put out the hotfix release ASAP!
Fix has been merged. We aim to put out the hotfix release ASAP!
where will the hotfix be available?
I will provide that information once the hotfix is available.