pulkitjalan / google-apiclient

Google api php client wrapper with Cloud Platform and Laravel support
MIT License
247 stars 75 forks source link

Google Service Exception: Missing 'grant_type' #15

Open sammyschnei opened 7 years ago

sammyschnei commented 7 years ago

Upon upgrading to package 3.* (now using google api 2.*) and running composer update, the REST.php script in the google api library is throwing the following exception:

{ "error": "invalid_request", "error_description": "Required parameter is missing: grant_type" }

Here's a bit of my stacktrace

No. CALLED CODE DOCUMENT LINE
56 Google_Http_REST::decodeHttpResponse(…) ~/plugins/samschneider/blogger/vendor/google/apiclient/src/Google/Http/REST.php 94
55 Google_Http_REST::doExecute(…)
54 call_user_func_array(…) ~/plugins/samschneider/blogger/vendor/google/apiclient/src/Google/Task/Runner.php 181
53 Google_Task_Runner->run() ~/plugins/samschneider/blogger/vendor/google/apiclient/src/Google/Http/REST.php 58
52 Google_Http_REST::execute(…) ~/plugins/samschneider/blogger/vendor/google/apiclient/src/Google/Client.php 779
51 Google_Client->execute(…) ~/plugins/samschneider/blogger/vendor/google/apiclient/src/Google/Service/Resource.php 232
50 Google_Service_Resource->call(…) ~/plugins/samschneider/blogger/vendor/google/apiclient-services/Google/Service/Blogger/Resource/Blogs.php 44
49 Google_Service_Blogger_Resource_Blogs->get(…) ~/plugins/samschneider/blogger/components/bloggerRecentList.php 186

I can't find many references in the google api docs themselves to grant_type, so I'm not sure yet where the problem lies. But I am using an offline access_type and therefore pass a refresh token and access token. But everything works with the most recent 2.* version.

github-actions[bot] commented 3 days ago

This issue is stale because it has been open 21 days with no activity. Remove stale label or comment or this will be closed in 7 days