Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

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: Reel search modal not pulling up anything

Status Resolved
Add-on / Version Reel 1.5.2
Severity
EE Version 5.4.0

MLohrman

Dec 15, 2020

I have setup an API app per instructions for Vimeo.  When I click the Add Video button the modal pops up, but no results are ever displayed. I thought maybe I had messed up the API stuff, but then noticed the JS error in the browser console. Any ideas? Thanks!

 

#1

BoldMinded (Brian)

Line 308 of reel.js has a conditional, change it to this:

if (data.body.hasOwnProperty('developer_message')) {
                showError(getResultList('vimeo'), data.body.developer_message);
                return;
            }
#2

BoldMinded (Brian)

Sorry, line 368

#3

MLohrman

Thanks Brian, mostly same error…

reel.js:368 Uncaught TypeError: Cannot read property ‘hasOwnProperty’ of null at Object.success (reel.js:368) at i (jquery.js?v=1607456803:2) at Object.fireWith [as resolveWith] (jquery.js?v=1607456803:2) at z (jquery.js?v=1607456803:4) at XMLHttpRequest.<a> (jquery.js?v=1607456803:4)

#4

BoldMinded (Brian)

Check your network tab to see what the raw response is when it makes the Ajax query to Vimeo.

#5

MLohrman

I don’t think it’s getting that far…https://www.dropbox.com/s/3qrt99a3eeamf3x/Screen%20Recording%202020-12-16%20at%2011.04.56%20AM.mp4?dl=0

#6

BoldMinded (Brian)

Try changing the conditional to this:

if (data && data.body && data.body.developer_message) {
#7

BoldMinded (Brian)

It wouldn’t throw that error unless an Ajax request is made, so you should definitely see something in your network tab.

#8

MLohrman

I uploaded a screenshot, let me know if this is what you are looking for. Thanks!

#9

MLohrman

I updated the conditional and here;s the error….

reel.js:373 Uncaught TypeError: Cannot read property ‘error’ of null at Object.success (reel.js:373) at i (jquery.js?v=1607456803:2) at Object.fireWith [as resolveWith] (jquery.js?v=1607456803:2) at z (jquery.js?v=1607456803:4) at XMLHttpRequest.<a> (jquery.js?v=1607456803:4)

#10

BoldMinded (Brian)

Part of the error message is covered in the screenshot by a tool tip.

In a private comment, can you share the credentials you’re using to connect to Vimeo so I can try it locally?

#11

MLohrman

Comment has been marked private.

#12

BoldMinded (Brian)

Comment has been marked private.

#13

MLohrman

I can change that name to be anything, so it does seem like a “display name” rather than a user name, I just tried the “User ID” which is just numbers and that worked. Thanks and have a good holiday!

Login to reply