mongo-php-library: Invalid response_to for query, RuntimeException

PHP Fatal error: Uncaught exception 'MongoDB\\Driver\\Exception\\RuntimeException' with message 'Invalid response_to for query. Expected 18989, got 18988.'

mongodb 1.2.5
mongodb/mongodb 1.1.1 MongoDB driver library

This exception is occasional. Any solution? Thanks!

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 21 (10 by maintainers)

Most upvoted comments

@kideny: MongoDB\Driver\Manager objects, and objects derived from them (e.g. cursors) cannot be shared acrossed processes and threads. This is touched upon in the note on MongoDB\Driver\Manager::__construct().

I just use apache mod_php, no threads or forked process in my php application!