{"action":"reopened","issue":{"url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/issues/768","labels_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/issues/768/labels{/name}","comments_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/issues/768/comments","events_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/issues/768/events","html_url":"https://github.com/sonata-project/SonataMediaBundle/issues/768","id":79102342,"number":768,"title":"Can´t add a youtube video - <url> malformed","user":{"login":"mdford","id":449080,"avatar_url":"https://avatars.githubusercontent.com/u/449080?v=3","gravatar_id":"","url":"https://api.github.com/users/mdford","html_url":"https://github.com/mdford","followers_url":"https://api.github.com/users/mdford/followers","following_url":"https://api.github.com/users/mdford/following{/other_user}","gists_url":"https://api.github.com/users/mdford/gists{/gist_id}","starred_url":"https://api.github.com/users/mdford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdford/subscriptions","organizations_url":"https://api.github.com/users/mdford/orgs","repos_url":"https://api.github.com/users/mdford/repos","events_url":"https://api.github.com/users/mdford/events{/privacy}","received_events_url":"https://api.github.com/users/mdford/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-21T18:02:15Z","updated_at":"2015-06-05T13:33:15Z","closed_at":null,"body":"I originally posted this as a comment on issue #759 (Can´t add a youtube video) but I reposted this as a new issue since I was not sure it was being seen as a comment on a closed issue (and it appears to be a different problem).  If so, I apologize, I just was not sure that closed issues were monitored.\r\n\r\nFor those of you who had success with issue #759  by using the curl connector, what version of media bundle are you using?  I made the changes to use curl, but I still get same error.  Yes, I have cleared cache, restarted server, etc.  I just upgraded to media bundle version 2.3.1 (from 2.2.8) and still have the same issue.  So, I am not sure why changing to curl does not work for me.   Any other suggestions, ideas? \r\n\r\n### Update:\r\n\r\nInstead of going through admin, I created the following quick test:\r\n   \r\n    /**\r\n     * @Route(\"/testcurl\", name=\"test_curl\")\r\n     */\r\n    public function testCurlAction()\r\n    {\r\n\r\n        $mm = $this->get('sonata.media.manager.media');\r\n\r\n        /** @var Media $media */\r\n        $media = $mm->create();\r\n        $media->setDescription('description');\r\n        $media->setName('mediaName');\r\n        $media->setBinaryContent('https://www.youtube.com/watch?v=JVkb7ulSnjA');\r\n        $media->setEnabled(1);\r\n\r\n        $mm->save($media, 'default', 'sonata.media.provider.youtube');\r\n\r\n        $status = array(\r\n            'status' => 200,\r\n            'message' => ''\r\n        );\r\n\r\n        return new Response(json_encode($status), 200, array('Content-Type' => 'application/json'));\r\n    }\r\n\r\nI now get the following exception:\r\n\r\n````\r\n<url> malformed\r\n500 Internal Server Error - RequestException \r\n````\r\n\r\n````\r\nStack Trace\r\nin /vagrant/vendor/kriswallsmith/buzz/lib/Buzz/Client/Curl.php at line 29   -\r\n            $errorMsg = curl_error($this->lastCurl);\r\n            $errorNo  = curl_errno($this->lastCurl);\r\n            $e = new RequestException($errorMsg, $errorNo);\r\n            $e->setRequest($request);\r\n            throw $e;\r\nat Curl ->send (object(Request), object(Response)) \r\nin /vagrant/vendor/kriswallsmith/buzz/lib/Buzz/Browser.php at line 130   + \r\nat Browser ->send (object(Request)) \r\nin /vagrant/vendor/kriswallsmith/buzz/lib/Buzz/Browser.php at line 82   + \r\nat Browser ->call (null, 'GET', array()) \r\nin /vagrant/vendor/kriswallsmith/buzz/lib/Buzz/Browser.php at line 31   + \r\nat Browser ->get (null) \r\nin /var/cache/symfony/dev/classes.php at line 16167   + \r\nat BaseVideoProvider ->getReferenceFile (object(Media)) \r\nin /var/cache/symfony/dev/classes.php at line 17345   + \r\nat FormatThumbnail ->generate (object(YouTubeProvider), object(Media)) \r\nin /var/cache/symfony/dev/classes.php at line 16028   + \r\nat BaseProvider ->generateThumbnails (object(Media)) \r\nin /var/cache/symfony/dev/classes.php at line 16218   + \r\nat BaseVideoProvider ->postPersist (object(Media)) \r\nin /vagrant/vendor/sonata-project/media-bundle/Listener/BaseMediaEventSubscriber.php at line 114   + \r\nat BaseMediaEventSubscriber ->postPersist (object(LifecycleEventArgs)) \r\nin /vagrant/vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/ContainerAwareEventManager.php at line 63   + \r\nat ContainerAwareEventManager ->dispatchEvent ('postPersist', object(LifecycleEventArgs)) \r\nin /vagrant/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php at line 953   + \r\nat UnitOfWork ->executeInserts (object(ClassMetadata)) \r\nin /vagrant/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php at line 318   + \r\nat UnitOfWork ->commit (null) \r\nin /vagrant/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php at line 355   + \r\nat EntityManager ->flush (null) \r\nin /var/cache/symfony/dev/jms_diextra/doctrine/EntityManager_555b82d289159.php at line 362   + \r\nat EntityManager ->flush () \r\nin /vagrant/vendor/sonata-project/core-bundle/Model/BaseManager.php at line 121   + \r\nat BaseManager ->save (object(Media), true) \r\nin /vagrant/vendor/sonata-project/media-bundle/Entity/MediaManager.php at line 41   + \r\nat MediaManager ->save (object(Media), 'default', 'sonata.media.provider.youtube') \r\nin /vagrant/src/Thorlos/AppBundle/Controller/DefaultController.php at line 546   + \r\nat DefaultController ->testCurlAction () \r\nat call_user_func_array (array(object(DefaultController), 'testCurlAction'), array()) \r\nin kernel.root_dir/bootstrap.php.cache at line 1077   + \r\nat HttpKernel ->handleRaw (object(Request), '1') \r\nin kernel.root_dir/bootstrap.php.cache at line 1051   + \r\nat HttpKernel ->handle (object(Request), '1', true) \r\nin kernel.root_dir/bootstrap.php.cache at line 1180   + \r\nat ContainerAwareHttpKernel ->handle (object(Request), '1', true) \r\nin kernel.root_dir/bootstrap.php.cache at line 459   + \r\nat Kernel ->handle (object(Request)) \r\nin /vagrant/web/app_dev.php at line 44   + \r\n\r\n````\r\n"}}