Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined index: errors in google-api-php-client/src/io/Google_REST.php #57

Closed
johannesnagl opened this issue Jan 22, 2014 · 0 comments
Closed
Assignees
Labels
🚨 This issue needs some love. triage me I really want to be triaged.

Comments

@johannesnagl
Copy link

sometimes the google+ api retuns errors without setting the 'errors' key. so the code throws an error.

in relation to https://code.google.com/p/google-api-php-client/issues/detail?id=266 i would suggest the following change:

//throw new Google_ServiceException($err, $code, null, $decoded['error']['errors']);
$error_msg = $err;
if(isset($decoded['error']) && isset($decoded['error']['errors'])){
  $error_msg = $decoded['error']['errors'];
}
throw new Google_ServiceException($err, $code, null, $error_msg);
bshaffer pushed a commit to bshaffer/google-api-php-client that referenced this issue Mar 2, 2016
…p-request

adds client id/secret to code,refresh,and password grant types
@yoshi-automation yoshi-automation added 🚨 This issue needs some love. triage me I really want to be triaged. labels Apr 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚨 This issue needs some love. triage me I really want to be triaged.
Projects
None yet
Development

No branches or pull requests

2 participants