Skip to content

Conversation

@JLowe-N
Copy link

@JLowe-N JLowe-N commented Jan 15, 2021

While working through this course, I had also encountered the no such collection error when I tried to query MongoDB from the Node server. After trying several things on the terminal/MongoDB side, I added code to the server to print out the available collections and discovered the database I had connected to was from Scott Moss' FEM course for API Design in Node.js.

I have added additional course notes describing this issue, as well as a code block describing the steps that can be taken to correct the issue.

Add an additional troubleshoot step to course notes for MongoDB & Node.js server.  Users who have previously taken the FEM API course, or have previously used MongoDB may already have port 27017 in use, which can result in the same MongoError - no such collection.  Detailed steps to stop the container, update the image, and get MongoDB container back to the final state.
Grammatical changes to potential 2nd cause for MongoError returned to Node.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant