FreeTube icon indicating copy to clipboard operation
FreeTube copied to clipboard

Search Box - Long query

Open abulenok opened this issue 4 years ago • 23 comments

Behavior of the program After entering to Search Box a long query error messages are displayed.

Expected behavior No results and no error messages. Probably the length of a search-query should be limited.

To Reproduce

  1. Paste to a search box long query (we've tested with 150k symbols query, which is attached below)
  2. Press Enter
  3. See error messages

Screenshots big query string

150k query.txt

Environment Information:

  • OS: Windows
  • OS Version: Windows 10
  • FreeTube version: 0.11.1
  • Installation Method (If applicable): .exe
  • Primary API Used: [Local API, Invidious API]

Additional context Our team (@Vovany4, @kgr0) has experienced this bug.

abulenok avatar Jan 16 '21 11:01 abulenok

is the link with the 150k chars valid on YouTube?

GilgusMaximus avatar Jan 16 '21 14:01 GilgusMaximus

YouTube says that no results found, doesn't throw any errors

abulenok avatar Jan 16 '21 16:01 abulenok

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.

github-actions[bot] avatar Dec 31 '22 01:12 github-actions[bot]

@absidue i imagine you've started work on using youtube.js for search, do you know if this will still be an issue once we migrate to that library?

ChunkyProgrammer avatar Dec 31 '22 20:12 ChunkyProgrammer

You won't see an error with the local API after the migration, there just won't be any results.

The code is done apart from child friendly search, which I opened a feature request for https://github.com/LuanRT/YouTube.js/issues/266), other than that it's ready for PRing.

absidue avatar Jan 01 '23 15:01 absidue

Invidious will likely still show an error.

absidue avatar Jan 01 '23 15:01 absidue

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.

github-actions[bot] avatar Feb 02 '23 01:02 github-actions[bot]

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.

github-actions[bot] avatar Mar 06 '23 02:03 github-actions[bot]

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.

github-actions[bot] avatar Apr 04 '23 01:04 github-actions[bot]

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.

github-actions[bot] avatar May 08 '23 01:05 github-actions[bot]

IV still craps itself but the Local API is just loading forever now without throwing an error

https://github.com/FreeTubeApp/FreeTube/assets/73130443/bc4afd7e-3c13-4f64-9461-9cd44dfbdc23

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.

github-actions[bot] avatar Jun 07 '23 02:06 github-actions[bot]

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.

github-actions[bot] avatar Jul 06 '23 02:07 github-actions[bot]

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.

github-actions[bot] avatar Aug 04 '23 01:08 github-actions[bot]

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.

github-actions[bot] avatar Sep 02 '23 01:09 github-actions[bot]

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.

github-actions[bot] avatar Oct 02 '23 01:10 github-actions[bot]

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.

github-actions[bot] avatar Oct 31 '23 01:10 github-actions[bot]

This is happening because there is a limit for the number of characters a query can have.

Current limit according to my tests are: 100 Characters

I have a fix but its not mergeable. I might need someone's help who knows the codebase a bit to fix this issue.

somanath-goudar avatar Nov 06 '23 12:11 somanath-goudar

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.

github-actions[bot] avatar Dec 05 '23 01:12 github-actions[bot]

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.

github-actions[bot] avatar Jan 05 '24 01:01 github-actions[bot]

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.

github-actions[bot] avatar Feb 04 '24 01:02 github-actions[bot]

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.

github-actions[bot] avatar Mar 04 '24 01:03 github-actions[bot]

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.

github-actions[bot] avatar Apr 02 '24 01:04 github-actions[bot]

Happy to fix this if no one wants to do it.

dkshxd avatar Apr 15 '24 05:04 dkshxd

@dkshxd go for it :)

Edit: learn from past PR issues https://github.com/FreeTubeApp/FreeTube/pull/4288