[Bug] Host removal from API breaks thumbnails in third party apps #219

Open
opened 2025-08-29 15:56:37 -04:00 by mixtrix · 3 comments

Describe the bug
Thanks for forking and keeping this instance up to date with patches and needed fixes (Redis, especially).

I run this image on my personal instance with Yattee as a client on my end devices - the thumbnails in it don't work however as it extracts the full URL from the API, and doesn't append the path - as a result of this change they were broken:

3bb7924181 (diff-01cdddb164)

I reverted this on a local fork, built the container and deployed it and it fixes the issue I'm encountering.

Would you consider reverting (or I can submit a PR)?

Thanks

Logs

Screenshots

Additional context

**Describe the bug** Thanks for forking and keeping this instance up to date with patches and needed fixes (Redis, especially). I run this image on my personal instance with Yattee as a client on my end devices - the thumbnails in it don't work however as it extracts the full URL from the API, and doesn't append the path - as a result of this change they were broken: https://git.nadeko.net/Fijxu/invidious/commit/3bb792418173d0b8a150ee919f9efc82516b3268?__goaway_challenge=meta-refresh&__goaway_id=14be8ebe7630a3fa38724433fbe53f5b#diff-01cdddb164ea2fd7f9a4fa3ec6e8e64416e80aa4 I reverted this on a local fork, built the container and deployed it and it fixes the issue I'm encountering. Would you consider reverting (or I can submit a PR)? Thanks **Logs** <!-- If applicable, copy the log that appear in the browser page where the error is reported. --> **Screenshots** <!-- If applicable, add screenshots to help explain your problem. --> **Additional context** <!-- Add any other context about the problem here. - Browser (if applicable): - OS (if applicable): -->
Owner

Thanks for reporting this.

I need to complete support for the Host header there.

Thanks for reporting this. I need to complete support for the Host header there.
Author

Actually, looking at this again - is the only problem that #{env.request.headers["Host"]} needs added back in here?

Actually, looking at this again - is the only problem that `#{env.request.headers["Host"]}` needs added back [in here](https://git.nadeko.net/Fijxu/invidious/src/commit/3bb792418173d0b8a150ee919f9efc82516b3268/src/invidious/jsonify/api_v1/common.cr#L11)?
Owner

yes, I need to make env argument available to that function so I can craft a correct URL based on the Host header, I may get my hands on that later

yes, I need to make `env` argument available to that function so I can craft a correct URL based on the Host header, I may get my hands on that later
Sign in to join this conversation.
No labels
bug
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Fijxu/invidious#219
No description provided.