leedo / leedo/noembed

401 Unauthorized on some YouTube videos when setting zero on maxheight parameter

Open
#98 1 comment 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.