If you don't find an answer, please click here to post your question.
Reply
Advisor
Posts: 19
Registered: ‎02-01-2016
Accepted Solution

OoyalaRequestErrorException in OoyalaApi.php line 442:

Hello Ooyala team,,

 

I got this error message when i intergarted with Laravel.

 

OoyalaRequestErrorException in OoyalaApi.php line 442:HTTP Error (401), Response: Provider not authorized for recommendations.

 

But with Codeigniter, everything is working well.

Could you please help me how can i slove this situation.

 

Regards,

Sa


Accepted Solutions
Ooyalan
Posts: 31
Registered: ‎06-23-2015

Re: OoyalaRequestErrorException in OoyalaApi.php line 442:

[ Edited ]

Hello Sa,

 

Thanks! I believe you are using a GET call like below.

 

$api->get("<<<API path>>>", $parameters);

 

Please check the API paths used in both the frameworks . If the API path specified is a Discovery REST API path, the request will fails as the account is not enabled for Discovery.

 

Please use this wiki, http://help.ooyala.com/video-platform/concepts/content_discovery_summary_of_routes.html to learn more about Discovery APIs. I did a sample request using the scratchpad as below and i got the same error. 

 

https://api.ooyala.com/docs/api_scratchpad?url=/v2/discover/trending&method=GET&api_key=NhNGYyOkdEY3...

 

 Thank you!

 

Regards,
Vaidee

View solution in original post


All Replies
Ooyalan
Posts: 31
Registered: ‎06-23-2015

Re: OoyalaRequestErrorException in OoyalaApi.php line 442:

Hi Sa,

 

Are you trying to use Ooyala Discovery APIs?

The provider ID that you are using need to be enabled with previlleges for using Discovery APIs. To get the discovery enabled , please contact Ooyala techincal support team.

 

However, the different behaviour that you are seeing between frameworks is wierd. Could you investigate if the same API key & secret are used in both setup? 

 

Please let me know. Thank you!

 

Regards,

Vaidee

Advisor
Posts: 19
Registered: ‎02-01-2016

Re: OoyalaRequestErrorException in OoyalaApi.php line 442:

Hello Vaidee,

 
Thank you very much for your quick reply.
 
Yeah, i am now trying to use Ooyala Discovery APIs based on your's Codeigniter sample project.
 
How can i contact to Ooyala techincal support team?
 
I have used same api key and secret key in both project.
Codeigniter project is working well, but in Laravel i got above error.
 
Regards,
Sa
Ooyalan
Posts: 31
Registered: ‎06-23-2015

Re: OoyalaRequestErrorException in OoyalaApi.php line 442:

Hi Sa,

 

Since your account is not enabled with discovery , ideally the recommendations API shouldn't be working with Codeigniter framework too. Please share the API path that you are using.

 

Thank you!

 

Regards,
Vaidee

Advisor
Posts: 19
Registered: ‎02-01-2016

Re: OoyalaRequestErrorException in OoyalaApi.php line 442:

Hello Vaidee,

 

This may be api path.

 

define('OOYALA_API_DEFAULT_CACHE_BASE_URL', 'http://cdn-api.ooyala.com');
define('OOYALA_API_DEFAULT_BASE_URL', 'https://api.ooyala.com');
define('OOYALA_API_DEFAULT_EXPIRATION_WINDOW', 15);
define('OOYALA_API_ROUND_UP_TIME', 300);

 

Thanks,

Sa

Ooyalan
Posts: 31
Registered: ‎06-23-2015

Re: OoyalaRequestErrorException in OoyalaApi.php line 442:

[ Edited ]

Hello Sa,

 

Thanks! I believe you are using a GET call like below.

 

$api->get("<<<API path>>>", $parameters);

 

Please check the API paths used in both the frameworks . If the API path specified is a Discovery REST API path, the request will fails as the account is not enabled for Discovery.

 

Please use this wiki, http://help.ooyala.com/video-platform/concepts/content_discovery_summary_of_routes.html to learn more about Discovery APIs. I did a sample request using the scratchpad as below and i got the same error. 

 

https://api.ooyala.com/docs/api_scratchpad?url=/v2/discover/trending&method=GET&api_key=NhNGYyOkdEY3...

 

 Thank you!

 

Regards,
Vaidee

Advisor
Posts: 19
Registered: ‎02-01-2016

Re: OoyalaRequestErrorException in OoyalaApi.php line 442:

 

Yeah Vaidee,

 

When using with codeigniter framework.I didn't get any error.

It show one video in web_example link.

i don't know why.

Thank you very much for your help.\

I will try base on your wiki link.

 

Thanks,

Sa

 

 

 

 

Ooyalan
Posts: 31
Registered: ‎06-23-2015

Re: OoyalaRequestErrorException in OoyalaApi.php line 442:

Hi Sa,

 

Sorry , i couldnt think of anything else causing the API to work in codeigniter framework and not working in Laravel. Ideally, the discovery APIs won't work on your account as it is not enabled . Please post us here if any you find anything interesting causing this discrepancy .Would be interested :)

 

Otherwise , good luck for your effort in Laravel framework. Thank you! 

 

Regards,
Vaidee

Advisor
Posts: 19
Registered: ‎02-01-2016

Re: OoyalaRequestErrorException in OoyalaApi.php line 442:

Finally, i got it.

thanks

Highlighted
Ooyalan
Posts: 31
Registered: ‎06-23-2015

Re: OoyalaRequestErrorException in OoyalaApi.php line 442:

Awesome. Would be happy to learn what was the issue and how you resolved it:) Thank you!