Sign In Register

How can we help you today?

Start a new topic
Answered

SyntaxError in NoSql Explorer

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?

png

Best 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!!


Thx for your reply!


Regards,

Leo.


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

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!!


Thx for your reply!


Regards,

Leo.

Login to post a comment