Hello all,
I'm following the Guesser game project guide and it's a really interesting insight on ArangoDB. Just have a couple of questions that are really bugging me.
I followed the Deployment in Production guide, if I start the server as in node guesser_server.js i get the message Cannot contact the Database! Terminating.... but if I do the NODE_ENV=production node guesser_server.js the application actually starts in localhost:8000. I can't seem to connect the dots on why this is happening.
Also, once the application is running on the 8000 port everything seems to work just fine but if I have to add an unknown animal or object to the database I get the error on the front-end "AJAX call failed, cannot update" and on the server the error TypeError=Converting circular structure to JSON (see attached).
Now the funny thing, the application stops but the added animal/objects are getting into the database. How can I fix this? Which is the best approach to resolve this?
Thanks,
Daniel M.