-
Notifications
You must be signed in to change notification settings - Fork 104
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
Exception: BSON::ObjectId::Invalid: 'Infinity' is an invalid ObjectId #38
Comments
???? |
I have the same issue cause the _id of my documents aren't the default ObjectId of Mongo: |
I have the same problem in version 0.4.1, is there someone knows how to solve this? |
I found that the last _id that is inserted on sqlite is 59315289200e830001656287, after that the plugin crash with the Infinity thing. |
I found the problem, on method init_placeholder_table the SQLite place column is set as Integer, change it to String and it should work.
|
- Use String type for 'place' column in sqlite fix phutchins#38
- Use String type for 'place' column in sqlite fix phutchins#38
Changing it to String did not work for me |
@nebalceroc : Can i show my problem to you? Are you saying clone the repo what you have as latest, and run logtsahs input plugin and sync. issue will be resolved? Int to String is the change done here https://github.com/nebalceroc/logstash-input-mongodb |
@yvshett sorry, I no longer work on this. |
I get this exception in loop (I'm running v0.3.3):
{:timestamp=>"2016-04-21T01:15:09.431000+0000", :message=>"MongoDB Input threw an exception, restarting", :exception=>#<BSON::ObjectId::Invalid: 'Infinity' is an invalid ObjectId.>, :level=>:warn}
and no document are indexed after that.
Tried to search for any invalid ID but can't find one. The IDs are given by Mongo, I'm not setting any custom IDs. Also run query in Mongo: ({"_id":{$not:{$type:7}}}) which return empty.
Anyone else get this exception??
Please help.
The text was updated successfully, but these errors were encountered: