-
Type: Task
-
Resolution: Unresolved
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: mongoimport
This is a considerable problem for usability.
//from {$undefined:truee} Wed Jan 16 20:27:14.514 exception:BSON representation of supplied JSON is too large: code FailedToParse: FailedToParse: Expecting '}' or ',': offset:26
There are a few things wrong with this error message:
- Doesn't provide output of what was found – there is no context like "truee", or ...
- Could provide current doc/level
- FailedToParse is repeated (not sure we need this at all)
- This is not a helpful string for a user: "BSON representation of supplied JSON is too large"
- What does BSON have to do with anything... I'm importing JSON
- "too large", what does that mean? No context nor idea how it too large
In addition, there was no error that there were more json objects on the same line, nor did it parse them. It just skipped them
{ _id: { $undefined : trueer} }{ "_id" : { "$minKey" : 1 } }{ "_id" : { "$maxKey" : true } }
- is related to
-
SERVER-11919 Add Tokenizer to JSON parser
- Backlog