Workspace is public here: https://ide.c9.io/cubap/rerum
I was following a tutorial to learn how to use MongoDB in Node and everything seemed to be peachy in the shell. I can get the record I inserted into the ‘rerum.info’ collection easily.
However, when I set up
app.get('/:collection'... (index.js:25), it pooped. The expectation of GETting https://rerum-cubap.c9users.io/info in the browser would be a simple table of the one record I can see easily in the shell. It appears to be successful through about collectionDriver.js:18, meaning the
cursor seems to come back fine. However, if I try at that point to run anything on the
toArray()) it just spins and spins. The symptom in the browser is a 2 minute wait and a 502 error.
Until very recently, I was strictly middle and front end, so there may be something quite obvious happening and I can’t see it. Is it a simple http(s) issue? Am I barking up the wrong port or ip? Is there some gap in the callback chain so the response is never resolving?