spicywebau / craft-embedded-assets

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

Failed queue jobs for Checking whether Instagram embedded asset needs to be refreshed #235

Open KarlBishop opened 1 year ago

KarlBishop commented 1 year ago

Bug Description

Recently I've started seeing failed queue jobs for "Checking whether Instagram embedded asset needs to be refreshed".

The queue jobs' Error message is:

spicyweb\embeddedassets\Service::requestUrl(): Return value must be of type spicyweb\embeddedassets\models\EmbeddedAsset, null returned

Any idea what causes this and how I can fix it?

Steps to reproduce

I can reproduce the error by updating the Instagram asset:

  1. Go to assets and find Instagram JSON
  2. Update the Title
  3. Save
  4. Go to Utilities > Queue Manager and see failed job

Expected behaviour

No response

Embedded Assets version

2.11.4

Craft CMS version

3.8.11