A connection string using the mongodb+srv protocol can notcontain a host name that specifies a port

I’m having this error while trying to connect to a mongodb with the Use DNS SRV when connecting option selected.

This is the (masked) host address:

as you can see there is no port in the host address.

I can connect via pymongo from my laptop