Publisher is EE6 compatible, but it does not support the Fluid field.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: YouTube videos don’t show up in Reel

Status Client Wait
Add-on / Version Reel 1.5.2
Severity
EE Version 6.0.2

Gregory Maher

Mar 18, 2021

When attempting to add a video the reel graphic spins but no videos show up. If you login you can see our credentials - they’re obscured in the messages below.

We included a debug parameter and got this…
https://domain.org/index.php?ACT=41&q=&page=&perPage=25&user=domainyoutubeuser&channel=channel_id

In the console, this: [Error] Failed to load resource: the server responded with a status of 500 () (domain.org, line 0)

The output of that URL is:
Google_Service_Exception Caught

Error calling GET https://www.googleapis.com/youtube/v3/channels?part=id%2Csnippet&forUsername= domainyoutubeuser&key=key: (403) Requests from referer

are blocked.

user/addons/reel/vendor/google/apiclient/src/Google/Http/REST.php:110

Stack Trace: Please include when reporting this error

#0 user/addons/reel/vendor/google/apiclient/src/Google/Http/REST.php(62): Google_Http_REST::decodeHttpResponse(Object(Google_Http_Request), Object(Google_Client))
#1 user/addons/reel/vendor/google/apiclient/src/Google/Task/Runner.php(174): Google_Http_REST::doExecute(Object(Google_Client), Object(Google_Http_Request))
#2 user/addons/reel/vendor/google/apiclient/src/Google/Http/REST.php(46): Google_Task_Runner->run()
#3 user/addons/reel/vendor/google/apiclient/src/Google/Client.php(593): Google_Http_REST::execute(Object(Google_Client), Object(Google_Http_Request))
#4 user/addons/reel/vendor/google/apiclient/src/Google/Service/Resource.php(240): Google_Client->execute(Object(Google_Http_Request))
#5 user/addons/reel/vendor/google/apiclient/src/Google/Service/YouTube.php(2488): Google_Service_Resource->call(‘list’, Array, ‘Google_Service_…’)
#6 user/addons/reel/mod.reel.php(432): Google_Service_YouTube_Channels_Resource->listChannels(‘id,snippet’, Array)
#7 ee/legacy/libraries/Actions.php(175): Reel->load_youtube()
#8 ee/legacy/libraries/Core.php(522): EE_Actions->__construct(true, Object(Closure))
#9 ee/legacy/controllers/ee.php(51): EE_Core->generate_action(true)
#10 [internal function]: EE->index()
#11 ee/ExpressionEngine/Core/Core.php(251): call_user_func_array(Array, Array)
#12 ee/ExpressionEngine/Core/Core.php(111): ExpressionEngine\Core\Core->runController(Array)
#13 ee/ExpressionEngine/Boot/boot.php(161): ExpressionEngine\Core\Core->run(Object(ExpressionEngine\Core\Request))
#14 httpdocs/index.php(174): require_once(’...’)
#14 httpdocs/index.php(174): require_once(’...’)

#1

BoldMinded (Brian)

Mar 18, 2021

A 403 error is a forbidden request… are you sure your server isn’t blocking any outgoing requests? 9/10 when it can’t fetch videos it is usually due to incorrect api credentials or some other network issue not related to the addon itself. Did this used to work and suddenly stop working? Did you check the api limits on the account?

#2

BoldMinded (Brian)

Mar 19, 2021

(403) Requests from referer <empty> are blocked.
#3

BoldMinded (Brian)

Mar 19, 2021

I tried the same account info locally and got the same error. I’d take a look at your API limits or something. I’ve never seen that error before.

I think its something with your API key. I tried the same user and channel id with my key and it works fine. When I change it to your key, it doesn’t work.

#4

Gregory Maher

Mar 19, 2021

OK, great - I’ll give that a shot and see if we can get it working.

Thanks, Brian!

#5

Gregory Maher

Mar 24, 2021

Comment has been marked private.

#6

BoldMinded (Brian)

Mar 24, 2021

Why are you trying to put the whole url in? It should just be the video ID.

#7

Gregory Maher

Mar 24, 2021

Comment has been marked private.

#8

BoldMinded (Brian)

Mar 24, 2021

I might have to change that placeholder, b/c the full URL used to work with the old API, but apparently not with the new, and I’m not sure I want to get into regular expression matching a valid YT URL.

#9

BoldMinded (Brian)

Mar 24, 2021

FWIW, I used a different API key and got the following response when searching for “eP-_0OkPhtM”

{
  “nextPage”: null,
  “prevPage”: null,
  “totalResults”: 0,
  “videos”: []
}

#10

BoldMinded (Brian)

Mar 24, 2021

Try clearing your cache folder, it might be caching an invalid response. I tried searching for that ID again with a different API key locally and I got the same expected JSON response, but with no videos. I’m not certain why the API isn’t returning that video in the search results… I don’t have that level of detail… it just sends the request and gets a response.

#11

Gregory Maher

Mar 24, 2021

Hi Brian,
Even after clearing our cache we’re not getting any results for that video ID.

I’ll followup with the client to see if that video is perhaps setup differently.

I’ll keep you posted, and thanks in advance!

Greg

#12

BoldMinded (Brian)

Mar 25, 2021

Yeah, I would test other video ids from the same account and other accounts. In general I think everything is working fine… there might be something stopping the video from displaying in the API results?

Login to reply