Onebox URL 404

/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.

「いいね!」 1

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!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.