Skip to content
This repository was archived by the owner on Jan 15, 2024. It is now read-only.
This repository was archived by the owner on Jan 15, 2024. It is now read-only.

no implicit conversion of nil into String (TypeError) #290

@sschepens

Description

@sschepens

I'm getting a lot of this errors sin updating to moped2/mongoid4:

no implicit conversion of nil into String (TypeError)
vendor/bundle/ruby/2.1.0/gems/moped-2.0.0/lib/moped/connection/socket/tcp.rb:20:in `initialize'
vendor/bundle/ruby/2.1.0/gems/moped-2.0.0/lib/moped/connection/socket/tcp.rb:20:in `block in initialize'
vendor/bundle/ruby/2.1.0/gems/moped-2.0.0/lib/moped/connection/socket/connectable.rb:119:in `handle_socket_errors'
vendor/bundle/ruby/2.1.0/gems/moped-2.0.0/lib/moped/connection/socket/tcp.rb:20:in `initialize'
vendor/bundle/ruby/2.1.0/gems/moped-2.0.0/lib/moped/connection/socket/connectable.rb:145:in `new'
vendor/bundle/ruby/2.1.0/gems/moped-2.0.0/lib/moped/connection/socket/connectable.rb:145:in `block in connect'
/usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/timeout.rb:82:in `block in timeout'
/usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/timeout.rb:70:in `catch'
/usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/timeout.rb:70:in `timeout'
vendor/bundle/ruby/2.1.0/gems/moped-2.0.0/lib/moped/connection/socket/connectable.rb:144:in `connect'
vendor/bundle/ruby/2.1.0/gems/moped-2.0.0/lib/moped/connection.rb:52:in `connect'
vendor/bundle/ruby/2.1.0/gems/moped-2.0.0/lib/moped/node.rb:531:in `connect'
vendor/bundle/ruby/2.1.0/gems/moped-2.0.0/lib/moped/node.rb:179:in `block in ensure_connected'
vendor/bundle/ruby/2.1.0/gems/moped-2.0.0/lib/moped/node.rb:115:in `block in connection'
vendor/bundle/ruby/2.1.0/gems/connection_pool-2.0.0/lib/connection_pool.rb:58:in `with'
vendor/bundle/ruby/2.1.0/gems/moped-2.0.0/lib/moped/node.rb:114:in `connection'
vendor/bundle/ruby/2.1.0/gems/moped-2.0.0/lib/moped/node.rb:177:in `ensure_connected'
vendor/bundle/ruby/2.1.0/gems/moped-2.0.0/lib/moped/node.rb:589:in `block in flush'
vendor/bundle/ruby/2.1.0/gems/moped-2.0.0/lib/moped/node.rb:617:in `block in logging'
vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.2/lib/active_support/notifications.rb:159:in `block in instrument'
vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.2/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.2/lib/active_support/notifications.rb:159:in `instrument'
vendor/bundle/ruby/2.1.0/gems/moped-2.0.0/lib/moped/instrumentable.rb:31:in `instrument'
vendor/bundle/ruby/2.1.0/gems/moped-2.0.0/lib/moped/node.rb:616:in `logging

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions