NextCenturyCorporation / neon

http://neonframework.org
Apache License 2.0
55 stars 15 forks source link

exception: can't convert from BSON type String to Date #6

Closed trustdarkness closed 10 years ago

trustdarkness commented 10 years ago

I'm running this from git on Debian Jessie. Heatmap works fine, but the other visual graphs in the angular demo do not (using the earthquake sample data). The traceback I get from the jettyRun process is below.

2014-07-25 16:21:10 com.ncc.neon.services.GenericExceptionMapper ERROR - { "serverUsed" : "localhost/127.0.0.1:27017" , "err msg" : "exception: can't convert from BSON type String to Date" , "code" : 16006 , "ok" : 0.0} com.mongodb.CommandFailureException: { "serverUsed" : "localhost/127.0.0.1:27017" , "errmsg" : "exception: can't convert fro m BSON type String to Date" , "code" : 16006 , "ok" : 0.0}

java -version

java version "1.7.0_65" OpenJDK Runtime Environment (IcedTea 2.5.1) (7u65-2.5.1-2) OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)

nodejs -v

v0.10.29

npm -v

1.4.4

tpanningnextcen commented 10 years ago

I only get this error if I don't run the second command in the examples/angular-demo/app/data/README.md file (it's the command that starts with mongo test --eval). Unfortunately, that command is necessary because mongo doesn't automatically detect that the dates are dates.

trustdarkness commented 10 years ago

Of course! I knew I was missing something obvious. Apologies and thanks!