spicywebau / craft-embedded-assets

Manage YouTube videos, Instagram photos and more as first class assets in Craft CMS
MIT License
171 stars 35 forks source link

Issue embedding YouTube videos: requestUrl() must be an instance of spicyweb\embeddedassets\models\EmbeddedAsset, null returned #182

Closed daniellelecomte closed 3 years ago

daniellelecomte commented 3 years ago

Description

Error when trying to add a new YouTube video to Assets in Craft: TypeError: Return value of spicyweb\embeddedassets\Service::requestUrl() must be an instance of spicyweb\embeddedassets\models\EmbeddedAsset, null returned

Steps to reproduce

  1. Navigate to Assets
  2. Click on Embed button
  3. Paste in YouTube URL
  4. 500 error shows in console

Other information

ttempleton commented 3 years ago

Closing this issue as a duplicate of #180. If you're unable to upgrade to Craft 3.6 and Embedded Assets 2.6.1 at the moment, then you should follow the suggestion in https://github.com/spicywebau/craft-embedded-assets/issues/180#issuecomment-836305903 to enforce usage of Embed 3.4.15.