ServerSelectionTimeoutError has no len()


While trying to complete the ticket for selecting movies based on country(The first graded ticket), my test cases keep failing as I keep encountering this error message “ServerSelectionTimeoutError has no len()”. I am able to get the output when I run the query in the mongo shell. It would be very helpful if anyone found a solution to this


Hi I am getting the same problem. Any help regarding this?

This is strange. Could you share the version of pymongo you are using?

1 Like

Hi Nathan. Thank you for replying.

I was able to solve this. The URI for the test db (forgot to update it by mistake) in the .INI document was wrong for me. I corrected it and it started working fine. Thank you!