Internal server error from YouTube Analytics API -


since yesterday receiving code 500 errors youtube analytics api. nothing has changed in relevant code since few months ago, , went smoothly before yesterday.

this sample query (but queries yt analytics fail):

https://www.googleapis.com/youtube/analytics/v1/reports?ids=channel%3d%3d<channelid>&metrics=views,averageviewduration,estimatedminuteswatched,comments,likes,dislikes,shares,subscribersgained,subscriberslost&dimensions=channel&start-date=2016-06-01&end-date=2016-06-30&start-index=1 

(with appropriate channelid , authorization header set). getting back:

{     "code": 500,     "message": "the remote server returned error: (500) internal server error.",     "response": {         "error": {             "errors": [{                     "domain": "global",                     "reason": "internalerror",                     "message": "unknown error occurred on server."                 }             ],             "code": 500,             "message": "unknown error occurred on server."         }     } } 

any clues?

i got same problem : "error 500" youtube api called (yt-analytics.readonly).

here workaround fixing problem :

  1. add following right on application https://www.googleapis.com/auth/youtube.readonly, if it's not usefull

  2. re-generate refresh token

  3. everything fixed

you can remove application , add again wihtout youtube.readonly right, it's still working. it's api got update adding unusefull right.

i have tested workaround api test console, adding "google apis explorer" application youtube.readonly & yt-analytics.readonly unblock problem , dont have "error 500" own token.

hope helps , it's clear enought !


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -