That is the case for @MaBeuLux88_xxx with the command he shared. But I am still not sure that it is the case for @Erkin_Qarayev since he is using GitLab CI and I do not know how that works.

Another thing to check is that the error is pymongo.errors.NotMasterError and that is not the error message I get. So I suspect that the error comes from what ever GitLab CI use to execute the command shared by Erkin_Qarayev.