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

Fatal error: Uncaught exception 'Google_Service_Exception' with message 'Error calling GET #718

Closed
iftikhardirv opened this issue Oct 28, 2015 · 11 comments
Assignees

Comments

@iftikhardirv
Copy link

Hello I'm working on this API. It was working properly up to yesterday. But today suddenly it gives me error. Sometime it run perfectly some time it gives bellow error

Fatal error: Uncaught exception 'Google_Service_Exception' with message 'Error calling GET https://www.googleapis.com/analytics/v3/data/ga?ids=ga%3A107698460&start-date=2015-09-15&end-date=today&metrics=ga%3Ausers: (500) There was an internal error.' in /var/www/vhosts/teensystudios.com/httpdocs/google-api/src/Google/Http/REST.php:110 Stack trace: #0 /var/www/vhosts/teensystudios.com/httpdocs/google-api/src/Google/Http/REST.php(62): Google_Http_REST::decodeHttpResponse(Object(Google_Http_Request), Object(Google_Client)) #1 [internal function]: Google_Http_REST::doExecute(Object(Google_Client), Object(Google_Http_Request)) #2 /var/www/vhosts/teensystudios.com/httpdocs/google-api/src/Google/Task/Runner.php(174): call_user_func_array(Array, Array) #3 /var/www/vhosts/teensystudios.com/httpdocs/google-api/src/Google/Http/REST.php(46): Google_Task_Runner->run() #4 /var/www/vhosts/teensystudios.com/httpdocs/google-api/src/Google/Client.php(593): Google_Http_REST::execute(Object(Google_Client), Object(Google_Http_Request)) #5 /va in /var/www/vhosts/teensystudios.com/httpdocs/google-api/src/Google/Http/REST.php on line 110

Please help me regards this. I'm really stuck in this.

Thanks in advance.

@bshaffer
Copy link
Contributor

Hello! Is there a chance you updated the library before getting the error? Try checking your code out to the v1-master branch and see if that fixes it.

@bshaffer
Copy link
Contributor

Nevermind, I see you are using classes that only exist in the previous version, so that cannot be the cause.

@bshaffer
Copy link
Contributor

Can you confirm this error is no longer occurring?

@iftikhardirv
Copy link
Author

Hi,
Error was in this function $results = getResults($analytics, $rows->getdefaultProfileId());
I put bellow code and its working now but i think something is wrong
try {
$results = getResults($analytics, $rows->getdefaultProfileId());
} catch (Exception $exc) {
$results = getResults($analytics, $rows->getdefaultProfileId());
}

@bshaffer
Copy link
Contributor

bshaffer commented Nov 4, 2015

It sounds like this was an intermittent issue.

@bshaffer bshaffer closed this as completed Nov 4, 2015
@santoshkverma212
Copy link

Hi , I'm working on google-api-php-client-master , Set application_name,oauth2_client_id, oauth2_client_secret,developer_key,site_name config.php but show

Fatal error: Uncaught exception: 'Google_ServiceException' with message 'Error calling GET https://www.googleapis.com/customsearch/v1?q=burrito&cx=x1ncfes5s54&key=AIzaSyAg9moxq_kk3lZHz6tiwkaVHOEd6Pz8qWM: (403) The request did not specify any referer. Please ensure that the client is sending referer or use the API Console to remove the referer restrictions.' in D:\xampp\htdocs\google-api-php-client-master\src\io\Google_REST.php:66 Stack trace: #0 D:\xampp\htdocs\google-api-php-client-master\src\io\Google_REST.php(36): Google_REST::decodeHttpResponse(Object(Google_HttpRequest)) #1 D:\xampp\htdocs\google-api-php-client-master\src\service\Google_ServiceResource.php(186): Google_REST::execute(Object(Google_HttpRequest)) #2 D:\xampp\htdocs\google-api-php-client-master\src\contrib\Google_CustomsearchService.php(70): Google_ServiceResource->__call('list', Array) #3 D:\xampp\htdocs\google-api-php-client-master\examples\customSearch\index.php(31): Google_CseServiceResource->listCse('burrito', Array) #4 {main} thrown in D:\xampp\htdocs\google-api-php-client-master\src\io\Google_REST.php on line 66

Please help me regards this. Thanks Regards

@ArchanaShet
Copy link

Can I get the step by step configuration of Google API for Google Analytics Audit generation by using Management API v3?
It must display audit report.
For Ex : http://mixedanalytics.com/en/dashboard#/app

@digracesion
Copy link

i've been having the same issue. it was working previously, but then i got the same error message. i'm pretty sure my library is up to date though since it was up and running only moments before the error appeared.

@prajoshvm
Copy link

I am having the same issue when using google job service, is there any solution?

@jomarocas
Copy link

ok same bug, i still use the v1 branch

@Pappuchauhan
Copy link

Hi,
You need to change the version follow the link [https://developers.google.com/my-business/samples/].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants