Skip to content

[Bug]: Many API errors #2265

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

Closed
2 of 3 tasks
MaiaDereva opened this issue May 24, 2022 · 17 comments · Fixed by #2268
Closed
2 of 3 tasks

[Bug]: Many API errors #2265

MaiaDereva opened this issue May 24, 2022 · 17 comments · Fixed by #2268
Labels
B: API issue bug Something isn't working

Comments

@MaiaDereva
Copy link

Guidelines

Describe the bug

I see this message in all videos:
TypeError: Cannot read properties of undefined (reading 'baseUrl')

I tried to change API Backend, Invidious source, RSS,... but I always have the same issue.

Expected Behavior

No error

Issue Labels

API issue

FreeTube Version

v0.16.0 Bêta

Operating System Version

Linux 5.4.0-113-generic #127-Ubuntu SMP Wed May 18 14:30:56 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Installation Method (If applicable)

.zip

Last Known Working FreeTube Version (If Any)

No response

Primary API used

Local API

Additional Information

freetube-API-errors

Nightly Build

@MaiaDereva MaiaDereva added the bug Something isn't working label May 24, 2022
@efb4f5ff-1298-471a-8973-3d47447115dc

This is too little info for us. Could u provide a few videos where this is happening for u. I cant reproduce.

@MaiaDereva
Copy link
Author

Hi, thank you for your answer. It's happening with every videos...
I can pick some of them as examples:
inv.bp.projectsegfau.lt/watch?v=rklJCVvRieA
inv.bp.projectsegfau.lt/watch?v=PqyOi1TqZNM
inv.bp.projectsegfau.lt/watch?v=lAZAcyPxbUc
inv.bp.projectsegfau.lt/watch?v=x0AnMT9RXfU
inv.bp.projectsegfau.lt/watch?v=1uBfJX0BT8s

After a while, error disappears, and I can normally watch most of the videos.

@MaiaDereva
Copy link
Author

It happened after I installed v0.16.0 Bêta when it was released.
It never happened before, with the oldest version but I can't remember its number of version (just the version before, I didn't use Freetube before that).
I thought it will be fixed but it's not so I prefer reporting the issue.

@MaiaDereva
Copy link
Author

Anyway, I have API errors all the time. For example, when I launch Freetube, and the Subscriptions page is displayed:
Error: Status code 404

TypeError: Cannot read properties of undefined (reading 'channelMetadataRenderer')

Error: Status code 502

@efb4f5ff-1298-471a-8973-3d47447115dc
  • Could u try out other Invidious instances.
  • If that doesnt work. Could u try out the latest nightly build and report back.

@MaiaDereva
Copy link
Author

MaiaDereva commented May 24, 2022

  • I already tried many instances as I didn't choose a default one (it automatically picks up one each time I launch Freetube)
  • I downloaded the latest nightly build but as I'm not an advanced Linux user, I don't know where to put these files... Can you help me?

@efb4f5ff-1298-471a-8973-3d47447115dc
  • I downloaded the latest nightly build but as I'm not an advanced Linux user, I don't know where to put these files... Can you help me?

As far as im aware u will get a zip file. U got to unpack the zip file and in the zip is an executable. Then u just need to run the executable.

@MaiaDereva
Copy link
Author

MaiaDereva commented May 24, 2022

OK, I succeded, thank you :)
The result is worse, i got this message:

`

<title>invidious.kavin.rocks | 502: Bad gateway</title> <script> (function(){if(document.addEventListener&&window.XMLHttpRequest&&JSON&&JSON.stringify){var e=function(a){var c=document.getElementById("error-feedback-survey"),d=document.getElementById("error-feedback-success"),b=new XMLHttpRequest;a={event:"feedback clicked",properties:{errorCode:502,helpful:a,version:1}};b.open("POST","https://sparrow.cloudflare.com/api/v1/event");b.setRequestHeader("Content-Type","application/json");b.setRequestHeader("Sparrow-Source-Key","c771f0e4b54944bebf4261d44bd79a1e"); b.send(JSON.stringify(a));c.classList.add("feedback-hidden");d.classList.remove("feedback-hidden")};document.addEventListener("DOMContentLoaded",function(){var a=document.getElementById("error-feedback"),c=document.getElementById("feedback-button-yes"),d=document.getElementById("feedback-button-no");"classList"in a&&(a.classList.remove("feedback-hidden"),c.addEventListener("click",function(){e(!0)}),d.addEventListener("click",function(){e(!1)}))})}})(); </script>

Error 502

Ray ID: 710740fe6b9a3b5b • 2022-05-24 16:02:08 UTC

Bad gateway

You

Browser

Working
Paris

Cloudflare

Working
invidious.kavin.rocks

Host

Error

What happened?

The web server reported a bad gateway error.

What can I do?

Please try again in a few minutes.

Was this page helpful? Yes No
Thank you for your feedback!

Cloudflare Ray ID: 710740fe6b9a3b5b Your IP: 2a01:e0a:28a:4040:ff2a:f935:83b6:2764 Performance & security by Cloudflare

`

@MaiaDereva
Copy link
Author

I launched it a second time, I don't see the above HTML message anymore. But always the API errors.

@hockerschwan
Copy link
Contributor

hockerschwan commented May 24, 2022

invidious.kavin.rocks doesn't work anymore #2236 Sorry it works
Would you select instance from https://api.invidious.io near your location, set it default and see what happens ?

@MaiaDereva
Copy link
Author

As I'm in France, I selected inv.bp.projectsegfau.lt and set it default (and also relaunched).
I also chose many different new videos at each time to be sure.
And I still have the same message:
'TypeError: Cannot read properties of undefined (reading 'baseUrl')'

@hockerschwan
Copy link
Contributor

Can you open developer console (ctrl shift i ) and see which part causes error?

@MaiaDereva
Copy link
Author

freetube-API-errors2

@MaiaDereva
Copy link
Author

Another one, much longer:
freetube-API-errors3

@hockerschwan
Copy link
Contributor

hockerschwan commented May 25, 2022

Did reproduce this on ubuntu 20.04 & Windows 10.

TypeError: Cannot read properties of undefined (reading 'baseUrl')
at eval (Watch.js?5b49:425)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96)

  1. Set API to Local
  2. Set Language to anything but English (US, UK or System)
  3. Watch any video with caption and receive error.
    With caption: https://vid.puffyan.us/watch?v=PqyOi1TqZNM
    Without caption: https://vid.puffyan.us/watch?v=F_tlGJLXwSI

@MaiaDereva
Copy link
Author

Right! If I choose English (US or UK), everything's fine.
If I choose System (which is French here), the errors appear.

@fabianski7
Copy link

With the AUR freetube-git built today:
PR resolved this issue for the video player page, but for the channel, the error still shows.

ksnip_tmp_lIHveP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B: API issue bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants