I also encountered this issue. I resolved it by changing the max height parameter to 300 from 241. Try setting the max height/width to other values and see if this resolves it.
I just encountered the same error - for me it seems to be related to the height property that is inserted. For some bizzare reason setting the height to 241 pixels will results in the error. Any other number I have tried seems to work with no drama?? Cannot understand how this is breaking it but that is all I can put it down to. Width is set to 300 if somehow they're related.
Also other sizes could cause this error. In the case of my client the width was set to 465, changing it to 460 resolved the problem. Could be interesting to know why this happens.
My video heights are set to "385" some work, some show the JSON primitive error. When I change the error'ed videos height to any number other than the original (385) the video works again.
Same here. Errors seem really sporadic - even for videos with the same dimensions - but often deleting the macro and re-adding it works. Not great for client confidence though so a patch would be massively welcome.
The call to youtube is done via http://oohembed.com/. ; That means that youtube receive a lot of request from this site and send the message "Sorry for the interruption. We have been receiving a large volume of requests from your network. To continue with your YouTube experience, please enter the verification code below."
Not sure what could be a solution for this. Maybe giving the possibility to change the oohembed Url to something else. It's then possible to call another sites who provide the same service or to a local installation of the oohembed code.
Other solution could be to add an exception for youtube and call directly the youtube oembed code instead of going via oohembed. Ideal situation would be to do this for all the different providers but is a lot more work.
Invalid JSON primitive
I'm helping a client with this problem. They have embedded several YouTube videos, but one of them is now causing an Invalid JSON primitive error.
Stack trace as follows:
Any ideas?
Thanks!
I also encountered this issue. I resolved it by changing the max height parameter to 300 from 241. Try setting the max height/width to other values and see if this resolves it.
Hi Doug,
I just encountered the same error - for me it seems to be related to the height property that is inserted. For some bizzare reason setting the height to 241 pixels will results in the error. Any other number I have tried seems to work with no drama?? Cannot understand how this is breaking it but that is all I can put it down to. Width is set to 300 if somehow they're related.
Cheers,
James
Olie and myself encountered this together - not some great coincidence ;)
Thanks guys! Fixed by setting the max height to 300px, as suggested. Thanks!
I had to uninstall to get this fixed. Couldn't find the offending embed.
Also other sizes could cause this error. In the case of my client the width was set to 465, changing it to 460 resolved the problem. Could be interesting to know why this happens.
I am having the same problem.
My video heights are set to "385" some work, some show the JSON primitive error. When I change the error'ed videos height to any number other than the original (385) the video works again.
Any update on this would be great!
Owen
Same here. Errors seem really sporadic - even for videos with the same dimensions - but often deleting the macro and re-adding it works. Not great for client confidence though so a patch would be massively welcome.
Think I found the reason for this error.
The call to youtube is done via http://oohembed.com/. ; That means that youtube receive a lot of request from this site and send the message "Sorry for the interruption. We have been receiving a large volume of requests from your network. To continue with your YouTube experience, please enter the verification code below."
You can try this by yourself, when you get the error message, by building the url like done in the package code.
Ex; http://oohembed.com/oohembed/?url=http://www.youtube.com/watch?v=MD5nU7kt7pg
Not sure what could be a solution for this. Maybe giving the possibility to change the oohembed Url to something else. It's then possible to call another sites who provide the same service or to a local installation of the oohembed code.
Other solution could be to add an exception for youtube and call directly the youtube oembed code instead of going via oohembed.
Ideal situation would be to do this for all the different providers but is a lot more work.
is working on a reply...