[Bug Report] Error loading track with long input
- Dominant language
- Java
- Stars
- 5.8k
- Forks
- 2.8k
- PR merge metrics
- No merged PRs in 30d
Description
### Bug Description
After you use !play command with (almost) max character message limit (for basic discord users) of characters like ﷺ or 顠, the bot displays "🚫 Error loading track."
### Steps to Reproduce
!play (paste entire attached txt file here)
[input.txt](https://github.com/jagrosh/MusicBot/files/10450574/input.txt)
### Expected Result
A video from Youtube will start to play.
### Debug Output
[debug_information.txt](https://github.com/jagrosh/MusicBot/files/10450357/debug_information.txt)
### Additional Info
There should be a result with such query in Youtube, as I uploaded a random video containing this problematic input in description.
If you paste that query into Youtube search on Safari, it will work seamlessly and a video should appear. But if you do the same on chrome/firefox it will crash the site. (I haven't tested it on any other browsers)
### Checklist
- [X] I have looked for information about this [within the documentation](https://jmusicbot.com/)
- [X] I have searched for similar issues [on the issues page](https://github.com/jagrosh/MusicBot/issues?q=is%3Aissue)
- [X] I am running the latest version of the bot: 
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the !play command's input-handling and track-loading entry points, then reproduce the failure using input.txt and review debug_information.txt. Trace how the long Unicode query is passed to the search service. Done means the supplied query loads a YouTube video successfully without breaking normal !play behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100