-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Question] Search fails with Could not extract JSON, Youtube API error 400, when not logged in #4206
Comments
Just to be sure, what's after "Current version" at the bottom of the page. |
So you don't have any errors when you are logged in? |
There's basically nothing even on debug level. I might try to get Invidious to log the successful request to Youtube as well and compare them. Side note: I also found out, that my crystal version was 1.10.1. I downgraded to 1.8.2 and recompiled. It didn't fix anything, but it might have done some damage to the DB, although unlikely. I'll install Invidious on another server with the correct crystal version from the start, clean DB and report back. Logged out and broken search (full debug log):
Logged in and working search(slightly truncated debug log at the end):
|
Alright, I figured it out. The region on my server was set to "us" (all lowercase). The reason why it wasn't broken while logged in is because I have a different region set for my account. I probably didn't restart Invidious when I found that originally, but already copied the config (above) and reverted it on the server. Thank you for your time. Closing. |
I have a private instance and every time I try to search, I get the Youtube API error 400, when I'm not logged in. Video playback works fine. This has been happening for at least a month.
If I log in, search, copy the request, manually remove the cookie from headers and resend the request I get the original error.
I'm pretty sure something is broken in my configuration (I haven't seen this issue on any other instance), but I wasn't able to find anything regarding this in the documentation, example config file or in the issues.
Commit: 8087e64 (latest at the time of writing)
Install: Manual install (no Docker)
Screenshot:
![invidious error](https://private-user-images.githubusercontent.com/81529977/278614111-1d557f8a-090e-4ec8-9931-a1a0ffac402d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk4NDA4MDgsIm5iZiI6MTczOTg0MDUwOCwicGF0aCI6Ii84MTUyOTk3Ny8yNzg2MTQxMTEtMWQ1NTdmOGEtMDkwZS00ZWM4LTk5MzEtYTFhMGZmYWM0MDJkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE4VDAxMDE0OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTUzMTk1NjI1OTVkYjhiNmIxYTVhYTBhMzY2ZDljOTY1YTM3YzE4OTM5YzNlMWEzZDAyYmU4ZjM0ODcxYWNjZTImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.YOW9NtSGC7OgTq7Cr2EqqW-YR_jgWLffQdXj74697Ms)
Logs from logged out session without modifying the request:
Full configuration:
The text was updated successfully, but these errors were encountered: