I'm using Google cloud api.
Following errors make my page blank. Debug log file shows the following errors on loading each blank page.
Fatal error: Uncaught exception 'Google_Service_Exception' with message '{
"error": {
"errors": [
{
"domain": "global",
"reason": "backendError",
"message": "Backend Error"
}
],
"code": 500,
"message": "Backend Error"
}
}
' in /var/www/html/wp-content/plugins/test/google_api/src/Google/Http/REST.php:123
Stack trace:
#0 /var/www/html/wp-content/plugins/test/google_api/src/Google/Http/REST.php(82): Google_Http_REST::decodeHttpResponse(Object(GuzzleHttp\Psr7\Response), Object(Guzz
leHttp\Psr7\Request), 'Google_Service_...')
#1 [internal function]: Google_Http_REST::doExecute(Object(GuzzleHttp\Client), Object(GuzzleHttp\Psr7\Request), 'Google_Service_...')
#2 /var/www/html/wp-content/plugins/test/google_api/src/Google/Task/Runner.php(181): call_user_func_array(Array, Array)
#3 /var/www/html/wp-content/plugins/test/google_api/src/Google/Http/REST.php(57): Google_Task_Runner->run()
#4 /var/www/html/wp-content/plugins/test/google_api/src/Google/Client.p in /var/www/html/wp-content/plugins/test/google_api/src/Google/Http/REST.php on li
ne 123
Fatal error: Uncaught exception 'Google_Service_Exception' with message 'Not Found' in /var/www/html/wp-content/plugins/test/google_api/src/Google/Http/REST.php:123
Stack trace:
#0 /var/www/html/wp-content/plugins/test/google_api/src/Google/Http/REST.php(82): Google_Http_REST::decodeHttpResponse(Object(GuzzleHttp\Psr7\Response), Object(Guzz
leHttp\Psr7\Request), 'Google_Service_...')
#1 [internal function]: Google_Http_REST::doExecute(Object(GuzzleHttp\Client), Object(GuzzleHttp\Psr7\Request), 'Google_Service_...')
#2 /var/www/html/wp-content/plugins/test/google_api/src/Google/Task/Runner.php(181): call_user_func_array(Array, Array)
#3 /var/www/html/wp-content/plugins/test/google_api/src/Google/Http/REST.php(57): Google_Task_Runner->run()
#4 /var/www/html/wp-content/plugins/test/google_api/src/Google/Client.php(758): Google_Http_REST::execute(Object(GuzzleHttp\Client), Object(GuzzleHttp\Psr7\Request)
, 'Google_Service_...', Array)
#5 /var/www/html/wp-content/plugins/test in /var/www/html/wp-content/plugins/test/google_api/src/Google/Http/REST.php on line 123
I think both errors are related.
Thanks in advance.
I assume you are using the Google APIs Client Library for PHP. If so you can directly report this issue to the engineers working on this library.
I do see similar reports to this where the solution was a user-end code fix. 'Google_Service_Exception' indicates that the request you made was either not authenticated, had an invalid/malformed post body, and/or was made to an invalid URL.
Therefore I recommend you attempt to debug your code further in order to see what line of your code is throwing this error. Make sure you are using the library properly, and that your API request is correct. Also make sure you are using the latest version of the library.
Related
I'm following this example https://developers.google.com/analytics/devguides/reporting/core/v3/quickstart/web-php
And when I excecute I get this error
Fatal error: Uncaught exception 'Google_Service_Exception' with
message 'Error calling GET
https://www.googleapis.com/analytics/v3/data/ga?ids=ga%3AXXXX&start-date=2015-10-26&end-date=2015-10-26&metrics=ga%3Apageviews&dimensions=ga%3Ahostname%2Cga%3ApagePath&sort=-ga%3Apageviews&filters=ga%3Aday%3D%3D26:
(500) There was an internal error.' in
/expert/htwebs/bbdd.introl.es/docs/recogida/v2/administracion/google2/google-api-php-client/src/Google/Http/REST.php:110
Stack trace: #0
/expert/htwebs/bbdd.introl.es/docs/recogida/v2/administracion/google2/google-api-php-client/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
/expert/htwebs/bbdd.introl.es/docs/recogida/v2/administracion/google2/google-api-php-client/src/Google/Task/Runner.php(174):
call_user_func_array(Array, Array) #3
/expert/htwebs/bbdd.introl.es/docs/recogida/v2/administracion/google2/
in
/expert/htwebs/bbdd.introl.es/docs/recogida/v2/administracion/google2/google-api-php-client/src/Google/Http/REST.php
on line 110
How can I resolve this error?
I am getting following error while accessing methods from strimics system in "soapclient"
Fatal error:
Uncaught SoapFault exception: [HTTP] Unauthorized in C:\wamp\www\studiofathom\test.php:25
Stack trace:
#0 [internal function]: SoapClient->__doRequest('<?xml version="...', 'https://fathomc...', 'tempuri....', 1, 0)
#1 C:\wamp\www\studiofathom\test.php(25): SoapClient->__soapCall('CreateCustomer', Array)
#2 {main} thrown in C:\wamp\www\studiofathom\test.php on line 25
Have you tried any other actions on this soap-server? Does it require authentication? As far as I know, you're simply not authenticated to use it (or this method)...
When I'm trying to call (via AJAX, during established session, with one Moderator publishing):
$openTok -> startArchive( $sessionId, "My Archive" );
I'm getting:
Fatal error:
Uncaught exception 'Guzzle\Http\Exception\ClientErrorResponseException' with message 'Client error response
[status code] 404
[reason phrase] Not Found
[url] https://api.opentok.com/v2/partner/44937XXX/archive' in F:\2 Workspace\5 Aptana\TokBox\vendor\guzzle\guzzle\src\Guzzle\Http\Exception\BadResponseException.php:43
Stack trace:
#0 F:\2 Workspace\5 Aptana\TokBox\vendor\guzzle\guzzle\src\Guzzle\Http\Message\Request.php(145): Guzzle\Http\Exception\BadResponseException::factory(Object(Guzzle\Http\Message\EntityEnclosingRequest), Object(Guzzle\Http\Message\Response))
#1 [internal function]: Guzzle\Http\Message\Request::onRequestError(Object(Guzzle\Common\Event), 'request.error', Object(Symfony\Component\EventDispatcher\EventDispatcher))
#2 F:\2 Workspace\5 Aptana\TokBox\vendor\symfony\event-dispatcher\Symfony\Component\EventDispatcher\EventDispatcher.php(164): call_user_func(Array, Object(Guzzle\Common\Event), 'request.error', Object(Symfony\Component\EventDispatcher\EventDispatcher))
#3 F:\2 Workspace\5 Apt in F:\2 Workspace\5 Aptana\TokBox\vendor\opentok\opentok\src\OpenTok\Util\Client.php on line 200
In addition, I've tried to run "Archiving Sample App", and Archiving is working there !
What am I doing wrong? Why I'm getting that "Fatal error" ? :?
Apparently problem was in trying to run my program from localhost.
Every other function was working correctly, except archivization, but when I have moved program to server, it started working properly.
after migrating to a new server, emails progammes with a crontab not send more, the script responsible for sending, returns this error :
Fatal error: Uncaught exception 'Zend_Session_Exception' with message 'Session must be started before any output has been sent to the browser; output started in /srv/www/assystemps/public/index_cron.php/2' in /srv/www/assystemps/library/Zend/Session.php:443
Stack trace:
#0 /srv/www/assystemps/library/Zend/Session/Namespace.php(143): Zend_Session::start(true)
#1 /srv/www/assystemps/library/Zend/Auth/Storage/Session.php(87): Zend_Session_Namespace->__construct('Zend_Auth')
#2 /srv/www/assystemps/library/Zend/Auth.php(91): Zend_Auth_Storage_Session->__construct()
#3 /srv/www/assystemps/library/Zend/Auth.php(151): Zend_Auth->getStorage()
#4 /srv/www/assystemps/application/AssystempsApplication.php(236): Zend_Auth->getIdentity()
#5 /srv/www/assystemps/public/index_cron.php(121): AssystempsApplication->envoyerMailErreur(Object(Zend_Cache_Exception))
#6 {main}
thrown in /srv/www/assystemps/library/Zend/Session.php on line 443
I am using a extension of import/export products in OpenCart but there is an error when i used it on window.
Fatal error: Uncaught exception 'Exception' with message 'Could not
open C:\Windows\Temp\php479C.tmp for reading! File does not exist.' in
C:\Inetpub\vhosts\webwhisperer.com.au\watermark\system\PHPExcel\Classes\PHPExcel\Reader\Excel2007.php:168
Stack trace: #0
C:\Inetpub\vhosts\webwhisperer.com.au\watermark\system\PHPExcel\Classes\PHPExcel\IOFactory.php(269):
PHPExcel_Reader_Excel2007->canRead('C:\Windows\Temp...') #1
C:\Inetpub\vhosts\webwhisperer.com.au\watermark\system\PHPExcel\Classes\PHPExcel\IOFactory.php(207):
PHPExcel_IOFactory::createReaderForFile('C:\Windows\Temp...') #2
C:\Inetpub\vhosts\webwhisperer.com.au\watermark\admin\model\catalog\productimportexport.php(1208):
PHPExcel_IOFactory::identify('C:\Windows\Temp...') #3
C:\Inetpub\vhosts\webwhisperer.com.au\watermark\admin\controller\catalog\productimportexport.php(352):
ModelCatalogProductImportExport->upload('C:\Windows\Temp...', '1') #4
[internal function]: ControllerCatalogProductImportExport->bulk() #5
C:\Inetpub\vhosts\webwhisperer.com.au\watermark\vqmod\ in
C:\Inetpub\vhosts\webwhisperer.com.au\watermark\system\PHPExcel\Classes\PHPExcel\Reader\Excel2007.php
on line 168 Fatal Error: Uncaught exception 'Exception' with message
'Could not open C:\Windows\Temp\php479C.tmp for reading! File does not
exist.' in
C:\Inetpub\vhosts\webwhisperer.com.au\watermark\system\PHPExcel\Classes\PHPExcel\Reader\Excel2007.php:168
Stack trace: #0
C:\Inetpub\vhosts\webwhisperer.com.au\watermark\system\PHPExcel\Classes\PHPExcel\IOFactory.php(269):
PHPExcel_Reader_Excel2007->canRead('C:\Windows\Temp...') #1
C:\Inetpub\vhosts\webwhisperer.com.au\watermark\system\PHPExcel\Classes\PHPExcel\IOFactory.php(207):
PHPExcel_IOFactory::createReaderForFile('C:\Windows\Temp...') #2
C:\Inetpub\vhosts\webwhisperer.com.au\watermark\admin\model\catalog\productimportexport.php(1208):
PHPExcel_IOFactory::identify('C:\Windows\Temp...') #3
C:\Inetpub\vhosts\webwhisperer.com.au\watermark\admin\controller\catalog\productimportexport.php(352):
ModelCatalogProductImportExport->upload('C:\Windows\Temp...', '1') #4
[internal function]: ControllerCatalogProductImportExport->bulk() #5
C:\Inetpub\vhosts\webwhisperer.com.au\watermark\vqmod\ in
C:\Inetpub\vhosts\webwhisperer.com.au\watermark\system\PHPExcel\Classes\PHPExcel\Reader\Excel2007.php
on line 168
Does anyone know what's the Problem here ..thanks in advance
The top of the stack trace tells you the answer:
Could not open C:\Windows\Temp\php479C.tmp for reading! File does not exist.
The PHPExcel class is unable to open that file as it does not exist. Looking at the stack trace, this is being uploaded by the 'upload' method of the ModelCatalogProductImportExport object. I would ensure that this function is correctly importing the file, and saving it to the correct directory before running the PHPExcel class functions over the file.