Skip to content

Error setting Mongo URI #279

Closed
Closed
@cspnanda

Description

@cspnanda

I am trying to set mongoDBURI. When I do

$ heroku config:set DATABASE_URI='mongodb://user:pass@server1.mongolab.com:53745,server2:53745/dbname?replicaSet=rs-xxx&ssl=true'

the app gets internal server error. Log shows

$ heroku logs

2016-02-06T05:12:28.806681+00:00 app[web.1]: Uncaught internal server error. [Error: Invalid mongoURI: mongodb://user:pass@server1.mongolab.com:53745,server2:53745/dbname?replicaSet=rs-xxx&ssl=true]

But when I do

$ heroku config:set DATABASE_URI='mongodb://user:pass@server1.mongolab.com:53745/dbname'
everything works fine. Any thoughts ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions