Skip to content
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

[Bug]: Search Returns No Values On Newly Updated Install #4312

Closed
5 of 6 tasks
xcarnage opened this issue Nov 9, 2023 · 9 comments
Closed
5 of 6 tasks

[Bug]: Search Returns No Values On Newly Updated Install #4312

xcarnage opened this issue Nov 9, 2023 · 9 comments
Labels
B: content not loading bug Something isn't working
Projects

Comments

@xcarnage
Copy link

xcarnage commented Nov 9, 2023

Guidelines

  • I have encountered this bug in the latest release of FreeTube.
  • I have encountered this bug in the official downloads of FreeTube.
  • I have searched the issue tracker for open and closed issues that are similar to the bug report I want to file, without success.
  • I have searched the documentation for information that matches the description of the bug I want to file, without success.
  • 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
Screenshot (45)

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

@xcarnage xcarnage added the bug Something isn't working label Nov 9, 2023
@FreeTubeBot FreeTubeBot added this to To assign in Bug Reports Nov 9, 2023
@absidue
Copy link
Member

absidue commented Nov 9, 2023

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.

@armakunizen
Copy link

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

@absidue
Copy link
Member

absidue commented Nov 22, 2023

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.

@efb4f5ff-1298-471a-8973-3d47447115dc efb4f5ff-1298-471a-8973-3d47447115dc changed the title Player Search Returns No Values On Newly Updated Install[Bug]: [Bug]: Player Search Returns No Values On Newly Updated Install Nov 23, 2023
@absidue absidue changed the title [Bug]: Player Search Returns No Values On Newly Updated Install [Bug]: Search Returns No Values On Newly Updated Install Nov 23, 2023
Copy link
Contributor

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.

@Ammako
Copy link

Ammako commented Dec 23, 2023

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)
2023-12-23.18-35-32.mp4

@github-actions github-actions bot removed the U: stale label Dec 24, 2023
@absidue
Copy link
Member

absidue commented Dec 24, 2023

@Ammako Could you please try the nightly builds, that bug should already be fixed by this pull request #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.

Copy link
Contributor

github-actions bot commented Apr 8, 2024

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.

@efb4f5ff-1298-471a-8973-3d47447115dc

Hi @xcarnage is this still happening for you in v0.20.0?

Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B: content not loading bug Something isn't working
Projects
Bug Reports
To assign
Development

No branches or pull requests

5 participants