Connecting to remote mongo databse

Has anyone had any luck using mongo on a hosted service like compose.io? 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: GenServer.call(#PID<0.542.0>, {:find, "users", [{"$query", [username: "johndoe"]}, {"$orderby", %{}}], %{_id: true}, [batch_size: 1000]}, 5000)
    ** (EXIT) time out
[error] Mongo tcp error (galaga.3.mongolayer.com:10161): connection timed out
[error] Mongo tcp error (galaga.3.mongolayer.com:10161): closed
1 Like