Mongoserverselectionerror in mongo shell

My mongoshell is starting correctly and show databases command use commands are working perfectly but when i use show collections commands or insert document commands the terminal showing mongoserverselectionerror

1 Like

Id try removing the timeout setting from the connection string query options. And see what happens.

1 Like

if i set timeout setting =0 it’s taking almost an hour to show the collections. why is it taking this much time to respond?