FreeTube
FreeTube copied to clipboard
[Bug]: Search Returns No Values On Newly Updated Install
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
While using the search bar attempt a random search query. Results return empty. Clicking fetch more results still returns empty.
Expected Behavior
I expected that search results would return information
Issue Labels
content not loading
FreeTube Version
v0.19.1 Beta
Operating System Version
Windows Version 22h2
Installation Method
.exe
Primary API used
Local API
Last Known Working FreeTube Version (If Any)
No response
Additional Information
No response
Nightly Build
- [ ] I have encountered this bug in the latest nightly build.
Can you please switch to the console tab in the devtools and see what the red messages are, according to the status bar on the top right, there are 13 errors.
I have the same problem on 0.19.1 beta. In the devtools (as you described) I get the following, hope this helps:
renderer.js:2 VIDEOJS: WARN: using Vhs.BANDWIDTH_VARIANCE is UNSAFE be sure you know what you are doing (anonymous) @ renderer.js:2 renderer.js:2 TypeError: Cannot read properties of undefined (reading 'name') at o$ (renderer.js:2:1384290) at renderer.js:2:1385432 at renderer.js:2:1385439 at Array.map (<anonymous>) at l$ (renderer.js:2:1384669) at renderer.js:2:1579971 at async a.performSearchLocal (renderer.js:2:1579720) performSearchLocal @ renderer.js:2 yt.artemislena.eu/api/v1/search/?q=glauben+sie+ja+nicht+wen+sie+da+vor+sich+haben&page=1&sort_by=relevance&date=&duration=&type=all:1 Failed to load resource: the server responded with a status of 400 () renderer.js:2 Invidious API error https://yt.artemislena.eu/api/v1/search/?q=glauben+sie+ja+nicht+wen+sie+da+vor+sich+haben&page=1&sort_by=relevance&date=&duration=&type=all Error: Missing hash key: "navigationEndpoint" at renderer.js:2:1374459 (anonymous) @ renderer.js:2 renderer.js:2 Error: Missing hash key: "navigationEndpoint" at renderer.js:2:1374459 (anonymous) @ renderer.js:2
Okay so it turns out that these are two separate issues, the one in the original post is caused by YouTube arranging their sections differently when it shows the "did you mean" text, so you'll see no results or just a few videos. That YouTube edge case will have to be supported in YouTube.js, so that's not something that can be changed on the FreeTube side.
The second issue, the one in the comment, is a FreeTube and Invidious bug. Auto-generated album playlists don't belong to any channels, so on the search results page they don't have a channel listed, just a bit of text that says "Playlist", so when FreeTube and Invidious try to parse the playlist author/channel, they error because they can't find it. I've opened a pull request to fix this in FreeTube for the local API.
This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.
I ran into an issue that I'm not sure if it might be the same as this, but... I've had absolutely no issues with the search functionality ever, until right now with this specific search term.
Searching for "e1m1" works. Searching for "daniel tidwell" works. It even works if you search for "e1m1 danieltidwell" or "danieltidwell e1m1" without a space. but searching for "e1m1 daniel tidwell" or "daniel tidwell e1m1" fails with TypeError: Cannot read properties of undefined (reading 'name')
log
at o$ (renderer.js:2:1384290)
at renderer.js:2:1385432
at renderer.js:2:1385439
at Array.map (<anonymous>)
at l$ (renderer.js:2:1384669)
at renderer.js:2:1579971
at async a.performSearchLocal (renderer.js:2:1579720)
https://github.com/FreeTubeApp/FreeTube/assets/108308111/09f8a8a6-6de9-41cf-a016-76af10c6d1d6
@Ammako Could you please try the nightly builds, that bug should already be fixed by this pull request https://github.com/FreeTubeApp/FreeTube/pull/4371. This one is caused by some music album playlists not being linked to a channel (either the artist doesn't have a YouTube channel or YouTube wasn't able to link it to the channel when the album was added to YouTube Music).
This issue is still open because of the other bug, the one listed in the original issue, not in the comments. That one is caused by YouTube's "showing results for x, search for y instead" (the typo correction response), because the structure of the response is a bit different in that case.
This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.
Hi @xcarnage is this still happening for you in v0.20.0?
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.