OneBox fails with some Youtube URLs


(Camille Roux) #1

Here is a capture of the Newrelic report (Error: “no implicit conversion of Symbol into Integer”):

It’s seem come from the use of the following URL

YouTube


(Bill Ayakatubby) #2

I don’t believe user pages are supported for oneboxing, only direct links to videos.


(Camille Roux) #3

Sure, but it should not fail… It’s currently impossible to post a content containing the URL “YouTube


(Bill Ayakatubby) #4

Ah, well that’s what your bug report should say, then.


(Jeff Atwood) #5

Is it? https://www.youtube.com/user/Startupfood

Impossible, eh? :wink:

(Just don’t make a single line with nothing but that URL on it.)


(Robin Ward) #6

Fixed in latest:

https://github.com/discourse/discourse/commit/5323d3fc291367d9ccc7c37df191eef139881349


(Jeff Atwood) #7