Everything fine on Localhost but on server its showing and error like
PHP message: PHP Fatal error: Uncaught exception 'TTransportException' with message 'TSocket read 0 bytes' in /var/www/SH_MVC/library/thrift/transport/TSocket.php:263
Stack trace:
#0 /var/www/SH_MVC/library/thrift/transport/TTransport.php(87): TSocket->read(4)
#1 /var/www/SH_MVC/library/thrift/transport/TBufferedTransport.php(109): TTransport->readAll(4)
#2 /var/www/SH_MVC/library/thrift/protocol/TBinaryProtocol.php(300): TBufferedTransport->readAll(4)
#3 /var/www/SH_MVC/library/thrift/protocol/TBinaryProtocol.php(192): TBinaryProtocol->readI32(NULL)
#4 /var/www/SH_MVC/library/thrift/packages/user_node/User_nodeService.php(460): TBinaryProtocol->readMessageBegin(NULL, 0, 0)
#5 /var/www/SH_MVC/library/thrift/packages/user_node/User_nodeService.php(419): user_node_User_nodeServiceClient->recv_create_article()
#6 /var/www/SH_MVC/application/models/neo4j.php(26): user_node_User_nodeServiceClient->create_article('testing1', '0a6c7824a972eea...', 'checking-neo4j', 'checking neo4j&...', '[{"id":"text-co...', '7" while reading response header from upstream, client: 000.00.0.000
i wrote a library on Scala with Neo4j and connected to php on ubuntu OS - same as Localhost(mymachine) and Server - its working perfect and with out any issues, but on live server its throwing an error. i copied the log information above. please help me on this.
Related
Having an issue with the XERO API when trying for the first time. This is with a clean LAMP install with SSL certificate in place.
When I go to authorization.php it takes me to Xero to authenticate and then back to callback.php with the following error.
Fatal error: Uncaught GuzzleHttp\Exception\ConnectException: cURL error 7: (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) in /var/www/DOMAIN.CO.UK/public_html/xero/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:200 Stack trace: #0
/var/www/DOMAIN.CO.UK/public_html/xero/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(155): GuzzleHttp\Handler\CurlFactory::createRejection() #1
/var/www/DOMAIN.CO.UK/public_html/xero/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(105): GuzzleHttp\Handler\CurlFactory::finishError() #2
/var/www/DOMAIN.CO.UK/public_html/xero/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(43): GuzzleHttp\Handler\CurlFactory::finish() #3 /var/www/DOMAIN.CO.UK/public_html/xero/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(28): GuzzleHttp\Handler\CurlHandler->__invoke() #4
/var/www/DOMAIN.CO.UK/public_html/xero/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(51): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}() #5
/var/www/train in /var/www/DOMAIN.CO.UK/public_html/xero/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 200
I've no idea what this issue is and ive tried looking online everywhere with no joy.
My set up is:
Centos 8
PHP 7.4.6
Apache2
I have PHP SOAP server which is communicate with another SOAP servers as a SOAP client. I have used nusoap library.
The SOAP server is working fine when traffic is low. But when server request incenses, we have received error for some of the requests
PHP Fatal error: Uncaught SoapFault exception: [HTTP] Could not connect to host in /home/public_html/api/soapserver.php:
Stack trace:
0 [internal function]: SoapClient->__doRequest('<?xml version="...', 'http://100.20.5...', 'urn:NameSpc#Fin...', 1, 0)
1 /home/public_html/api/soapserver.php (103): SoapClient->__soapCall('FindClient...', Array)
2 [internal function]: FindClientInfo('username', 'password')
3 /home/public_html/api/lib/nusoap.php(4206): call_user_func_array('FindClient...', Array)
4 /home/public_html/api/lib/nusoap.php(3828): nusoap_server->invoke_method()
5 /home/public_html/api/soapserver.php(25): nusoap_server->service('<?xml version="...')
6 {main}
PHP Version is 5.4.45
Id: nusoap.php,v 1.123 2010/04/26 20:15:08 snichol Exp
Please suggest with necessary way to solve this issue. Thanks in advance.
By documentation from here https://itorrents.org/automation.php
I have added their example torrent (Ubuntu x64 for testing) and added the code just like instructed:
Example...
<?php
ini_set( 'soap.wsdl_cache_enabled', '0' );
$client = new SoapClient('http://itorrents.org/api/torrage.wsdl');
$infoHash = $client->cacheTorrent(base64_encode(file_get_contents('http://itorrents.org/torrent/B415C913643E5FF49FE37D304BBB5E6E11AD5101.torrent')));
echo $infoHash . "\n";
PS: Also, tested locally by downloading .torrent file and adding to the folder, same error. (Added direct link so those who test do not have to download it on their machine)
Error log...
Fatal error: Uncaught SoapFault exception: [HTTP] Internal Server Error in /var/www/htdocs/test/soap.php:6 Stack trace: #0 [internal function]: SoapClient->__doRequest('<?xml version="...', 'https://itorren...', 'urn:xmethods-de...', 1, 0) #1 /var/www/htdocs/test/soap.php(6): SoapClient->__call('cacheTorrent', Array) #2 {main} thrown in /var/www/htdocs/test/soap.php on line 6
I have a task (query) running some php code that retrieves data from gmail mailboxes. It has been working fine until last friday (April 10th, 2015) and now I'm getting this error log:
E 11:58:26.094 2015-04-15 200 3.38 KB 14.2s /code.php
0.1.0.2 - - [15/Apr/2015:07:58:26 -0700] "POST /code.php HTTP/1.1" 200 3462 "https://xxxxxxxxx.appspot.com/start.php?email=test#email.com" "AppEngine-Google; (+http://code.google.com/appengine)" "mailroof-test.appspot.com" ms=14201 cpu_ms=407 cpm_usd=0.001221 queue_name=worker task_name=13657588804765054031 instance=00c61b117c031f6c5ded2e3d1653abac0f4b87fa app_engine_release=1.9.19
E 11:58:26.088 PHP Fatal error: Uncaught exception 'Google_IO_Exception' with message 'HTTP Error: Unable to connect: 'fopen(https://www.googleapis.com/gmail/v1/users/me/messages?maxResults=100&labelIds=INBOX&pageToken=12866883594511227777): failed to open stream: Unsupported SSL context options are set. The following options are present, but have been ignored: cafile
Fetch error'' in /base/data/home/apps/xxxxxxxxx/1.383623356139435513/google-api-php-client/src/Google/IO/Stream.php:140
Stack trace:
#0 /base/data/home/apps/xxxxxxxxx/1.383623356139435513/google-api-php-client/src/Google/IO/Abstract.php(133): Google_IO_Stream->executeRequest(Object(Google_Http_Request))
#1 /base/data/home/apps/xxxxxxxxx/1.383623356139435513/google-api-php-client/src/Google/Http/REST.php(61): Google_IO_Abstract->makeRequest(Object(Google_Http_Request))
#2 [internal function]: Google_Http_REST::doExecute(Object(Google_Client), Object(Google_Http_Request))
#3 /base/data/home/apps/xxxxxxxxx/1.383623356139435513/google-api-php-client/src/Goo in /base/data/home/apps/xxxxxxxxx/1.383623356139435513/google-api-php-client/src/Google/IO/Stream.php on line 140
This is becoming an issue since it happens once every so often.
If anyone has any idea what might be going on or how to catch the error, that will be most appreciated.
Use the latest version of the API as of 25 April I think, and do this action:
https://stackoverflow.com/a/30719310/1834922.
I´m testing it right now as I have the same issue but for a Drive app. So far it's working but a 10 GB file takes a long time to really know. Will update.
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.