So i'm using MongoLab as my DB Host and recently I have been running into this issue. Whenever I load up my application for the first time with a cleared cache on the first run, I receive this error message:
Fatal error: Uncaught exception 'MongoCursorException' with message
'couldn't send query: Connection reset by peer'
After I refresh the page again and the application loads without any issues. I was wondering if anyone knew the reason for this error or had any fixes to resolve this.
Thanks and Happy Holidays.
Where are you hosting your app code?
What is likely happening is that the first connection is taking a while (longer than the set timeout) to connect to the MongoLab host. The connection is then established so that the second request uses it.
Related
I've prepared some scripts on my local, and everything works properly... but when I just upload all files on server, and run script I have following error:
*Fatal error: Uncaught ActiveCollab\SDK\Exceptions\CallFailed: Unknown SSL protocol error in connection to project.*****.com:443 in ......./activecollab/src/Connector.php:208........*
On server is php 7.1 , and cURL is also installed...
do you have any suggestions what could be a problem?
Thank you in advance!
ActiveCollab SDK uses cURL to execute HTTP requests. “Unknown SSL protocol error in connection” is error thrown by cURL, and there are plenty of articles online that offer advice how to troubleshoot it (for example: http://blog.techstacks.com/2010/03/3-common-causes-of-unknown-ssl-protocol-errors-with-curl.html). Just search for the error message up to the project.w-em.com ("Unknown SSL protocol error in connection to"), and you’ll find a lot of resources that cover this class of cURL errors.
I am trying to move my docusign implementation from the demo account to the production one, but when I try to make a login request I receive the following error:
Fatal error: Uncaught exception 'DocuSign\eSign\ApiException' with message '[401] Error connecting to the API (https://www.docusign.net/restapi/v2/accounts/8159635/envelopes)' in ......
I haven't experienced any problems with the developer account and I my implementation was approved by dicusign and the integration key was assigned to the official account.
I'm using the following PHP implementation - https://github.com/docusign/docusign-php-client
I changed the host in the code from "https://demo.docusign.net/restapi" to "https://www.docusign.net/restapi"
Any help will be really appreciated! Thank you in advance!
Looks like you're calling the wrong endpoint; try na3.docusign.net/restapi/v2/...
My company recently added MongoDB to the databases that we use and things have been going mostly smoothly, but every once in a while we get an odd error. It is near impossible to duplicate, and has only happened four times in the last week of testing, but once we go live to production our clients will be using the site much more frequently than we were for testing. We are trying to solve the bug before it gets out of hand.
The error we get is: (line breaks added for readability)
Fatal error: Uncaught exception 'MongoCursorException' with message
'Failed to connect to: 10.0.1.114:27017: send_package: error reading from socket:
Timed out waiting for header data' in
/opt/local/apache2/htdocs/stage2/library/Shanty/Mongo/Connection/Group.php on line 134
We are using ShantyMongo in PHP and it is a remote connection. The error is really intermittent, and refreshing the page is enough to get it to go away. As a temporary solution, we have wrapped all of our mongo methods in a for...try/catch so that if a MongoException is thrown we retry the method up to two more times, the hope being that it will succeed one of the three attempts since the error is so unpredictable.
I'm new to cakePHP and I've been having real difficulty getting it working on my free aws account. I first tried setting up LAMP on my own, but gave up and am now trying to use the bitnami LAMP stack:
https://aws.amazon.com/amis/bitnami-lapp-stack-5-4-13-1-64-bit-ubuntu-12-04
Anyways, that seemed to work, and I was following the cakePHP Blogs tutorial:
http://book.cakephp.org/2.0/en/getting-started.html
I got the mySQL database and tables all set up, and just to test I went to the cakePHP dir:
http://[my amazon instance].compute-1.amazonaws.com/cakephp/
Page loads up with no problems.
But if I reload that page, I get an error:
PHP Fatal error: Uncaught exception 'LogicException' with message 'Passed array does not specify an existing static method (class 'App' does not have a method 'load')' in /opt/bitnami/frameworks/cakephp/lib/Cake/bootstrap.php:133\nStack trace:\n#0 /opt/bitnami/frameworks/cakephp/lib/Cake/bootstrap.php(133): spl_autoload_register(Array)\n#1 /opt/bitnami/frameworks/cakephp/app/webroot/index.php(77): include('/opt/bitnami/fr...')\n#2 {main}\n thrown in /opt/bitnami/frameworks/cakephp/lib/Cake/bootstrap.php on line 133
At that point, nothing to do but restart apache. Once again the page shows up one time, then reload and it errors as above.
Halp!
Mongo DB showing an error Fatal error: Uncaught exception 'MongoConnectionException' with message 'Operation now in progress' in PHP. How to resolve this error and why this error comes.
This typically means the driver has issues connecting to the database. I've learned this through the very first result in Google when pasting your question ;)
As Remon said, "I have an error please help" doesn't work very well when asking programming questions.
Usual things to make sure are, that Mongodb is running and you are connecting to the right host:port e.g.
$m = new Mongo();
If it's not in the localhost (your machine) and default port try this.
$con = new Mongo("mongodb://{$username}:{$password}#{$host}");
Also try to connect to the database using the mongo shell interface.
I had this issue when trying to connect to ObjectRocket. The solution was to add my IP to the ACLs and then I no longer got this error.