web analytics

Fatal error: Uncaught exception ‘MongoCursorTimeoutException’ with message ‘hostname:27017: Read timed out after reading 0 bytes, waited for 30.000000 seconds’

I was trying to insert a 7 lakh data into a collection and I got the following error.

Fatal error: Uncaught exception ‘MongoCursorTimeoutException’ with message ‘hostname:27017: Read timed out after reading 0 bytes, waited for 30.000000 seconds’

To fix this, add the following to the top of your PHP page.

MongoCursor::$timeout = -1;

 

One comment to Fatal error: Uncaught exception ‘MongoCursorTimeoutException’ with message ‘hostname:27017: Read timed out after reading 0 bytes, waited for 30.000000 seconds’

  • air max 2013  says:

    air max 2013

    I’ve been surfing on-line more than three hours lately, yet I by no means discovered any fascinating article like yours. It is lovely value sufficient for me. In my opinion, if all website owners and bloggers made excellent content material as you did…

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>