401 Unauthorized on some YouTube videos when setting zero on maxheight parameter
Nobody has claimed this yet.
- Dominant language
- Perl
- Stars
- 496
- Forks
- 91
- PR merge metrics
- No merged PRs in 30d
Description
401 unauthorized:
https://noembed.com/embed?url=https://www.youtube.com/watch?v=0zic3GIcccc&maxwidth=0&maxheight=0&nowrap=on
Working:
https://noembed.com/embed?url=https://www.youtube.com/watch?v=0zic3GIcccc&maxwidth=854&maxheight=480&nowrap=on
oddly enough, also working
https://noembed.com/embed?url=https://www.youtube.com/watch?v=WR_hCMR2Xvc&maxwidth=0&maxheight=0&nowrap=on
Seems from my testing that setting maxwidth=0, maxheight=0 on videos marked as unlisted can cause 401 unauthorized to appear. If a value > 0 is used on the same url, the problem doesn't manifest, nor does it manifest of listed videos (in my testing).
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the noembed.com requests in the issue, comparing maxwidth=0/maxheight=0 with positive dimensions for the listed and unlisted YouTube videos. Trace the YouTube request handling and parameter validation to find where the 401 response is produced. Done means the reported unlisted-video case no longer returns 401 while the existing working cases remain functional.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- perl
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100