Connecting to remote mongo databse

Has anyone had any luck using mongo on a hosted service like I’m using mongodb_ecto which works for a few minutes and then times out.

So far the only examples and discussions that I have found are from others having the same issue so I’m wondering if this is even supported?

[error] #PID<0.687.0> running Demo.Endpoint terminated
Server: johndoe.localhost:4000 (http)
Request: GET /
** (exit) exited in:<0.542.0>, {:find, "users", [{"$query", [username: "johndoe"]}, {"$orderby", %{}}], %{_id: true}, [batch_size: 1000]}, 5000)
    ** (EXIT) time out
[error] Mongo tcp error ( connection timed out
[error] Mongo tcp error ( closed
1 Like