I keep getting this error after updating to 2.4.1:
/usr/local/lib/ruby/2.4.0/forwardable.rb:228:in `max_message_size'
/usr/local/lib/ruby/gems/2.4.0/gems/mongo-2.4.1/lib/mongo/server/connectable.rb:114:in `block in read'
/usr/local/lib/ruby/gems/2.4.0/gems/mongo-2.4.1/lib/mongo/server/connectable.rb:97:in `ensure_connected'
/usr/local/lib/ruby/gems/2.4.0/gems/mongo-2.4.1/lib/mongo/server/connectable.rb:113:in `read'
/usr/local/lib/ruby/gems/2.4.0/gems/mongo-2.4.1/lib/mongo/server/connection.rb:163:in `deliver'
/usr/local/lib/ruby/gems/2.4.0/gems/mongo-2.4.1/lib/mongo/server/connection.rb:108:in `block in dispatch'
/usr/local/lib/ruby/gems/2.4.0/gems/mongo-2.4.1/lib/mongo/monitoring/publishable.rb:47:in `publish_command'
/usr/local/lib/ruby/gems/2.4.0/gems/mongo-2.4.1/lib/mongo/server/connection.rb:107:in `dispatch'
/usr/local/lib/ruby/gems/2.4.0/gems/mongo-2.4.1/lib/mongo/operation/executable.rb:37:in `block in execute'
/usr/local/lib/ruby/gems/2.4.0/gems/mongo-2.4.1/lib/mongo/server/connection_pool.rb:107:in `with_connection'
/usr/local/lib/ruby/gems/2.4.0/gems/mongo-2.4.1/lib/mongo/server.rb:242:in `with_connection'
/usr/local/lib/ruby/gems/2.4.0/gems/mongo-2.4.1/lib/mongo/operation/executable.rb:35:in `execute'
/usr/local/lib/ruby/gems/2.4.0/gems/mongo-2.4.1/lib/mongo/collection/view/iterable.rb:81:in `send_initial_query'
/usr/local/lib/ruby/gems/2.4.0/gems/mongo-2.4.1/lib/mongo/collection/view/iterable.rb:41:in `block in each'
/usr/local/lib/ruby/gems/2.4.0/gems/mongo-2.4.1/lib/mongo/retryable.rb:51:in `read_with_retry'
/usr/local/lib/ruby/gems/2.4.0/gems/mongo-2.4.1/lib/mongo/collection/view/iterable.rb:39:in `each'
52:in `first'
52:in `block in process_file'
29:in `each_line'
29:in `process_file'
91:in `block in run_inner'
85:in `each'
85:in `run_inner'
18:in `run'
This error happens when I call any function on the results of a query (in this example it's 'first'). It doesn't happen all the time ... it's pretty random.
- duplicates
-
RUBY-1194 TypeError: wrong argument type Integer (expected Proc) with MRI 2.4
- Closed