Onebox url 404

AI-generated summary

truman reports that inserting a YouTube URL directly into a post results in a 404 error for the onebox URL. Lilly provides a similar YouTube link, and truman mentions an issue on their website. Lilly suggests trying safe mode, but truman confirms the issue persists. Lilly asks if other oneboxes are affected, and truman confirms that all links return 404 errors. Moin provides a Wikipedia link as an example. truman shares code snippets and output from the console, indicating that the oneboxer and preview functions work correctly. truman concludes that the issue might be related to a proxy problem.

/onebox?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DM0ZmR6UU_8k&refresh=true
https://www.youtube.com/watch?v=M0ZmR6UU_8k

When you directly insert a YouTube URL into a post, onebox url will return a 404 error.

On my website, there seems to be an issue, but I’m not sure what’s causing it.

have you tried safe mode?

yeah. The same issue still persists.

is it only youtube? or do other oneboxes give the 404 error?

other oneboxes? can you give me some examples? thanks for you reply.

All links are returning 404 errors.

not good code.

discourse(prod)> Oneboxer.onebox('https://www.youtube.com/watch?v=0506yDSgU7M')
=> "<div class=\"youtube-onebox lazy-video-container\" data-video-id=\"0506yDSgU7M\" data-video-title=\"Linux HATES Me – Daily Driver Challenge Pt.1\" data-video-start-time=\"\" data-provider-name=\"youtube\">\n  <a href=\"https://www.youtube.com/watch?v=0506yDSgU7M\" target=\"_blank\" class=\"video-thumbnail\" rel=\"nofollow ugc noopener\">\n    <img class=\"youtube-thumbnail\" src=\"https://img.youtube.com/vi/0506yDSgU7M/maxresdefault.jpg\" title=\"Linux HATES Me – Daily Driver Challenge Pt.1\">\n  </a>\n</div>\n"
discourse(prod)> Oneboxer.preview('https://www.youtube.com/watch?v=0506yDSgU7M')
=> "<img src=\"https://img.youtube.com/vi/0506yDSgU7M/hqdefault.jpg\" width=\"480\" height=\"360\" title=\"Linux HATES Me – Daily Driver Challenge Pt.1\">"

I really don’t know the reason anymore.

proxy issue!