Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #88 and many others with Failed to handshake #89

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

vitalik-dj
Copy link

Hello! Please merge this pull request because this issue prevents the use of this plugin already for two years!!! There are many issues related to this problem but no one fixed it. The fix is elementary.

Error: MONGODB | Failed to handshake with test-mongo: 27017, wrong number of arguments (given 2, expected 1)

Backtrace :
"/usr/share/logstash/vendor/logstash-output-mongodb/lib/logstash/outputs/bson/logstash_timestamp.rb:37:in from_bson'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/bson-4.15.0-java/lib/bson/hash.rb:123:in from_bson'"

File: bson-4.15.0-java/lib/bson/hash.rb:123 ^

115 while (type = buffer.get_byte) != NULL_BYTE
116 field = buffer.get_cstring
117 cls = BSON::Registry.get(type, field)
118 value = if options.empty?
119 # Compatibility with the older Ruby driver versions which define
120 # a DBRef class with from_bson accepting a single argument.
121 cls.from_bson(buffer)
122 else
123 cls.from_bson(buffer, **options) <<- the call here with 2 arguments, but all definitions were done for single arg
124 end
125 hash.store(field, value)
126 end

Copy link

cla-checker-service bot commented Apr 19, 2024

💚 CLA has been signed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant