Hello,
I have setup a new McAfee Web Gateway, version 9.2.4
I need to be able to block and allow Youtube videos, but it is not working as I had hoped.
I have activated SSL and imported the Youtube API v3.
I have created a valid API key that I have tested using the Postman application and I get search results from Youtube when I use the API key.
I have added the API key into the MWG but it is not working well unfortunately. In the youtube_api_error.log I find a lot of:
[16/Nov/2020:08:57:05 +0100] Unable to fetch result from Youtube - Will Fail Open! [16/Nov/2020:08:57:05 +0100] Unable to fetch result from Youtube - Will Fail Open!
I have added two screenshots from the results in the rule tracing central.
I hope someone can help me figure out what to do to get the rule to work.
Kind regards,
Tim
Solved! Go to Solution.
It seems I had to add payment details to the Youtube account for it to work.
Strange, I could do lookups from Postman without any problems, but when I tried from the MWG it just refused to work...
I was given the suggestion to look at the mwg-core-errors file and it looks like this:
[2020-11-17 05:06:49.979 +01:00] [ExternalListsFilterPlugin] [ExtListsError] Error in ExternalListsFilter: 'CWebServiceDataSource: unexpected return code =400'. [2020-11-17 05:06:49.979 +01:00] [ExternalListsFilterPlugin] [ExtListsError] Error in ExternalListsFilter: 'Error during data fetch'. [2020-11-17 05:06:49.980 +01:00] [UtilsFilterPlugin] [InvalidPropertyParameter] 'JSON filter: GetPropertyValue': Parameters for property 'com.scur.engine.jsonfilter.getbyname' are invalid, reason: 'first parameter should be a map'
It is this JSON lookup that somehow fails:
https://www.googleapis.com/youtube/v3/videos?id=${0}&key=${1}&part=snippet
If I manually enter an ID and the key and paste it in a browser I get information about the video.
I log the API Key and the VideoID and they have correct values
I have attached two more screenshots if it is of any help?
It seems I had to add payment details to the Youtube account for it to work.
Strange, I could do lookups from Postman without any problems, but when I tried from the MWG it just refused to work...
Corporate Headquarters
6220 America Center Drive
San Jose, CA 95002 USA