I encountered this once when querying challengeInstance documents. The problem was simple: I had some errors in my CloudCode and I inserted NaN into some challenge's script data - this causes error when the documents are parsed.
When you put in some find condition then the document with the invalid data is not part of the result set, thus you don't see the SyntaxError. So you have to find the document that contains this invalid data and fix it. Then, you should check your CloudCode and prevent inserting NaN into your database.
Marcel
l
leo lin
said
over 6 years ago
Answer
We solved this problem by exporting collection data and find keyword "NaN", then update them all.
So we could find all the collection data finally!!
leo lin
Hello,
When I query data and input "{}" in NoSql Explorer,
it output error message "SyntaxError: Unexpected token N".
But when I input some search condition, like "{_id:"abc"}", it works and output data.
Could you help us to solve this problem?
We solved this problem by exporting collection data and find keyword "NaN", then update them all.
So we could find all the collection data finally!!
Thx for your reply!
Regards,
Leo.
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstMarcel Piestansky
Hi,
I encountered this once when querying challengeInstance documents. The problem was simple: I had some errors in my CloudCode and I inserted NaN into some challenge's script data - this causes error when the documents are parsed.
When you put in some find condition then the document with the invalid data is not part of the result set, thus you don't see the SyntaxError. So you have to find the document that contains this invalid data and fix it. Then, you should check your CloudCode and prevent inserting NaN into your database.
Marcel
leo lin
We solved this problem by exporting collection data and find keyword "NaN", then update them all.
So we could find all the collection data finally!!
Thx for your reply!
Regards,
Leo.
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2487 topics