502/blank page error when trying to load libredirect "site hosted" redirects at global-identity-2 #95

Open
opened 2026-07-24 00:26:34 +05:30 by nyanpasu64 · 0 comments

When I click on https://www.designsystemscollective.com/the-blueprint-for-creating-an-icon-system-that-stays-consistent-at-scale-bde858c111ef, the server redirects me to https://medium.com/m/global-identity-2?redirectUrl=https%3A%2F%2Fwww.designsystemscollective.com%2Fthe-blueprint-for-creating-an-icon-system-that-stays-consistent-at-scale-bde858c111ef. Then LibRedirect forwards this to a LibMedium instance at md.vern.cc or my self-host. At this point, I get a 502 error on md.vern.cc or a blank page on my self-host.

My Docker logs shows a string of these errors:

thread 'actix-rt|system:0|arbiter:6' (21) panicked at src/data.rs:158:73:
called `Option::unwrap()` on a `None` value

I think the problem is the article ID lives after the question mark (in the query string), LibRedirect does not remove/replace the question mark when performing a redirection, but LibMedium only parses the path and not the query parameters for an article ID. Is this behavior better to change in LibRedirect or LibMedium?

(Even after fixing this URL, I get a 404 on md.vern.cc but the article loads fine on my own instance.)

When I click on https://www.designsystemscollective.com/the-blueprint-for-creating-an-icon-system-that-stays-consistent-at-scale-bde858c111ef, the server redirects me to https://medium.com/m/global-identity-2?redirectUrl=https%3A%2F%2Fwww.designsystemscollective.com%2Fthe-blueprint-for-creating-an-icon-system-that-stays-consistent-at-scale-bde858c111ef. Then LibRedirect forwards this to a LibMedium instance at md.vern.cc or my self-host. At this point, I get a 502 error on md.vern.cc or a blank page on my self-host. My Docker logs shows a string of these errors: ``` thread 'actix-rt|system:0|arbiter:6' (21) panicked at src/data.rs:158:73: called `Option::unwrap()` on a `None` value ``` I think the problem is the article ID lives *after* the question mark (in the query string), LibRedirect does not remove/replace the question mark when performing a redirection, but LibMedium only parses the path and *not* the query parameters for an article ID. Is this behavior better to change in LibRedirect or LibMedium? (Even after fixing this URL, I get a 404 on md.vern.cc but the article loads fine on my own instance.)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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
realaravinth/libmedium#95
No description provided.