-
Notifications
You must be signed in to change notification settings - Fork 1.3k
fix: for long query throwing 413 error #4288
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
fix: for long query throwing 413 error #4288
Conversation
PikachuEXE
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please address the warnings from lint first
Head branch was pushed to by a user without write access
|
@PikachuEXE Lint warnings are fixed. Please review |
|
Hey there! While your PR does fix the issue with searching, it unfortunately creates a different problem. Our search bar handles a number of different functions outside of searching. The main one is that you can paste a YouTube URL into the search bar and FreeTube will parse that URL to take you directly to the video. Sometimes, this URL will be an Invidious URL. Other times, the URL will include playlist information and we'll show that as well once we've taken you to your video. It could also be a combination of the 2. The TLDR is that limiting the search bar to 100 characters fixes the search problem, but it has the potential to break our other features as those might be parsing URLs that are longer than 100 characters. This URL was shared as an example. I would suggest taking a step back and digging through the search bar functionality in order to fix the core issue. We'll have to revert the limit in the search bar and only make changes to the functionality that handles search. I would instead show a toast message that states that the query is too long and refuse to handle the search. If this is something that you're able to do in the next day or so, then feel free to make those changes to this PR. If you don't think you'll have time to make those changes any time soon, then please close this PR and create a new one once you have had time to work on this. Thank you! |
|
Hello @PrestonN, I now have a better understanding of the issue. I'm committed to resolving it. I'll work on finding a solution over the next 24 hours, and if I'm successful, I'll make the necessary commits to this pull request. However, if I encounter any challenges during this period, I may need to temporarily close the pull request while I investigate the problem further. |
Pull request was converted to draft
This PR fixes issue with long query for search box
Pull Request Type
Related issue
closes #940
Description
Findings:
Screenshots
Screen.Recording.2023-11-06.at.6.55.13.PM.mov