{"action":"opened","issue":{"url":"https://api.github.com/repos/plone/plone.app.mosaic/issues/341","repository_url":"https://api.github.com/repos/plone/plone.app.mosaic","labels_url":"https://api.github.com/repos/plone/plone.app.mosaic/issues/341/labels{/name}","comments_url":"https://api.github.com/repos/plone/plone.app.mosaic/issues/341/comments","events_url":"https://api.github.com/repos/plone/plone.app.mosaic/issues/341/events","html_url":"https://github.com/plone/plone.app.mosaic/issues/341","id":203813527,"number":341,"title":"embed tile fails quietly on private videos","user":{"login":"tkimnguyen","id":815418,"avatar_url":"https://avatars.githubusercontent.com/u/815418?v=3","gravatar_id":"","url":"https://api.github.com/users/tkimnguyen","html_url":"https://github.com/tkimnguyen","followers_url":"https://api.github.com/users/tkimnguyen/followers","following_url":"https://api.github.com/users/tkimnguyen/following{/other_user}","gists_url":"https://api.github.com/users/tkimnguyen/gists{/gist_id}","starred_url":"https://api.github.com/users/tkimnguyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkimnguyen/subscriptions","organizations_url":"https://api.github.com/users/tkimnguyen/orgs","repos_url":"https://api.github.com/users/tkimnguyen/repos","events_url":"https://api.github.com/users/tkimnguyen/events{/privacy}","received_events_url":"https://api.github.com/users/tkimnguyen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-28T15:41:06Z","updated_at":"2017-01-28T15:41:06Z","closed_at":null,"body":"If you try to insert an embed tile but provide a YouTube URL for a video that is private, the error message is too vague (just says there was an error). If you look at the browser console you see an error 503 and the Plone error stack shows\r\n\r\n``2017-01-28T09:33:56 ERROR Zope.SiteErrorLog 1485617636.230.911262557102 http://localhost:8080/Idealware/a-new-page/@@pl\\\r\none.app.standardtiles.embed/097377e9f79b4c5e84df6eb5e91e7978\r\nTraceback (innermost last):\r\n  Module ZPublisher.Publish, line 138, in publish\r\n  Module ZPublisher.mapply, line 77, in mapply\r\n  Module ZPublisher.Publish, line 48, in call_object\r\n  Module plone.memoize.volatile, line 71, in replacement\r\n  Module plone.app.standardtiles.embed, line 33, in __call__\r\nKeyError: 'html'``\r\n\r\nThe noembed URL being called (e.g. https://noembed.com/embed?callback=embed_data=&url=https://www.youtube.com/watch?v=72vl4HOmND0 ) shows \r\n\r\n``{\"url\":\"https://www.youtube.com/watch?v=72vl4HOmND0\",\"error\":\"401 Unauthorized \\n\"}``\r\n\r\n"}}
{"actor":{"display_login":"tkimnguyen"}}