Tell us what’s happening:
i have some problem with the code, i try follow the hint but always error “MongoWriteConcernError: No write concern mode named 'majority ’ found in replica set configuration”.
You changed the personSchema it has to be the one you made in the previous challenge. If I fix that your code passes the tests.
I don’t think the error you are getting is related to this. But I might suggest you fix the Schema and then delete the collection and try again.
If you still get the same error I would suggest you make a new cluster and select a different region and/or provider and see if that helps.
I can’t say I fully understand how the read/write concern with replica sets works. There is a system in place that I’m not going to try to explain but below are some related docs in case you want to try and better understand the error.
You might be able to bypass it by removing &w=majority from the connection string (or using &w=1 might work as well). But that doesn’t seem like a good idea if it makes the DB less reliable. Again, I can’t say I really took the time to fully understand how this works.
Anyway, my best guess (as I have never seen this error) is that the cluster is the issue or the time it is taking to acknowledge is too slow.