Open MauroPerna opened 5 months ago
Hi @MauroPerna
This is really cool, i have no idea about this error!
Could you tag me as a reviwer once you open the pull request? It seems like an elegant solution for this issue.
By the way, is there a chance to see the whole code of your application? I wander how it looks like (especially the config service).
Hi @ItayTheDar, sorry for the delay. I was on vacation haha.
I don't know why but I can't make the pull request.
I would be happy to show you my code, if you have an email I will be happy to share it with you.
Amazing! This is my email - itay2803@gmail.com
Hi @MauroPerna!
Could you share with me your code?
I am using Mongo Atlas and the configuration needs "srv", I didn't specify the port number but get an error:
This is my database service:
And I get this error:
Looking into this file
venv/lib/python3.9/site-packages/nest/core/database/odm_config.py
, I realized the port is always in the URI despite the server "srv" is True.The solution I implemented is the following, replace the get_engine_url method by this one:
Notice the port now is given under the srv condition. I will make a pull request solving this error.
Best regards, Mauro.