akoscz / YouTubePlaylist

A sample Android application which demonstrates the use of the YouTube Data v3 API.
Apache License 2.0
153 stars 84 forks source link

On production playstore #32

Open oscarshaitan opened 6 years ago

oscarshaitan commented 6 years ago

{ "errors": [ { "domain": "global", "reason": "required", "message": "Required parameter: part", "locationType": "parameter", "location": "part" } ], "code": 400, "message": "Required parameter: part" }

thats the error I got. and I have an api key working. any Idea?

akoscz commented 6 years ago

Do you have a stack trace showing which class the error is coming from? It's either GetPlaylistAsyncTask.java or GetPlaylistAsyncTask.java. Take a look inside those classes, notice the class member variables YOUTUBE_PLAYLIST_PART and YOUTUBE_VIDEOS_PART. These selectors indicate which part of the "playlist" or "video" API request should be included in the response. The error message you posted seems to indicate that the "part" parameter is missing from the API request which is required. You're going to have to do some debugging to figure out what's happening with your code in production that this parameter is not being set on the API request.

oscarshaitan commented 6 years ago

on debug works perfect, but when I use the app on the playstore fails, I check the key by using http request, I put the part on the builder and nothing works

SaadAhmed1122 commented 3 years ago

Same Issue Occured

SaadAhmed1122 commented 3 years ago

It work perfectly on debug but videos are not show when upload the app on playstore.