google-apiclient icon indicating copy to clipboard operation
google-apiclient copied to clipboard

Google Service Exception: Missing 'grant_type'

Open sammyschnei opened this issue 9 years ago • 1 comments

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.

sammyschnei avatar Jul 25 '16 17:07 sammyschnei

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

github-actions[bot] avatar Jul 01 '24 05:07 github-actions[bot]