invidious icon indicating copy to clipboard operation
invidious copied to clipboard

[Bug] 414 URI Too Long when trying to move onto the next page

Open liammcsh2008 opened this issue 1 month ago • 4 comments

Describe the bug every time I click on the next page to view another page of the channels uploaded videos. I get an error message saying “414 URI Too Long”

Steps to Reproduce Steps to reproduce the behavior:

  1. Go to 'any channel page'
  2. Click on 'next page'
  3. See error

Logs

Screenshots

Additional context It appears to be happening on mostly a lot of channels. Some examples are. https://inv.nadeko.net/channel/UCRALQjHLdVP0b6t1DpOjPaw https://inv.nadeko.net/channel/UCM0iFLkCW2kJMB059NSNl_g https://inv.nadeko.net/channel/UC_-3EkzgyFWCJ9ZdNdttfdA https://inv.nadeko.net/channel/UCaXXA60yZcH5j7Pi7A7YnBA https://inv.nadeko.net/channel/UC5PtMWK1Eqhkipz2op2X87w https://inv.nadeko.net/channel/UCiHUJ_eylwwIAHuHx_cqXUg

liammcsh2008 avatar Nov 07 '25 19:11 liammcsh2008

Seeing this as well on 2025.10.16-5cfe294 @ master, I'm putting the URI into pastebin because it is massive: {EDIT: was apparently deleted, but running wc --chars on the URI revealed it is a whopping 8751 characters long}

Here's the channel I reproduced this on: /channel/UC8THb_fnOptyVgpi3xuCd-A?sort_by=popular

In particular, seems like something weird might be going on with the continuation parameter, as it seems wayyyy too long to be normal.

EDIT: seems like https://github.com/iv-org/invidious/pull/5394 may be able to mitigate this, have not tested it yet tho

KiyoNetcat avatar Nov 09 '25 08:11 KiyoNetcat

It's actually really bad. This video is just me scrolling to the end of the URL.

https://github.com/user-attachments/assets/7a9efced-54ff-4f33-995c-e9ad0618fda9

cD1rtX3 avatar Nov 16 '25 18:11 cD1rtX3

it's now fixed

Ronin546 avatar Nov 23 '25 21:11 Ronin546

doesn't seem like it yet, still experiencing it on the same channel i repro'd it on; also master hasn't been updated in two weeks nor has the PR allowing for larger request line sizes been merged yet. only thing that could've changed is youtube actually fixing it, yet it still remains broken

KiyoNetcat avatar Nov 23 '25 21:11 KiyoNetcat

For NGINX users, https://github.com/iv-org/invidious/pull/5394 requires large_client_header_buffers to be set to large_client_header_buffers 4 16k; to allow NGINX process large URLs. This also needs a modification on https://github.com/iv-org/documentation/blob/4902ecd0b0a46b8705051a1ae0eaadda3015cadb/docs/nginx.md

In the other hand, I'll take https://github.com/iv-org/invidious/pull/5394 and do a new PR because the original author deleted the branch.

Fijxu avatar Dec 14 '25 22:12 Fijxu

Reopening for documentation modifications.

unixfox avatar Dec 15 '25 07:12 unixfox

I feel like just saying "yeah we accept big URLs now" is a band-aid fix and doesn't actually solve the issue. Why is the URL big in the first place? It didn't use to be.

cD1rtX3 avatar Dec 17 '25 00:12 cD1rtX3