Skip to content

databaseURI with email and password causes error #79

@omairvaiyani

Description

@omairvaiyani

Just tried setting up a local server and sent a curl request, received this error in console. Before giving more details, is there an obvious mistake that I could have made to cause this?

Uncaught internal server error. [Error: Username containing an unescaped at-sign] Error: Username containing an unescaped at-sign
    at module.exports (/Users/omairvaiyani/Documents/github/app-server/node_modules/parse-server/node_modules/mongodb/lib/url_parser.js:61:13)
    at connect (/Users/omairvaiyani/Documents/github/app-server/node_modules/parse-server/node_modules/mongodb/lib/mongo_client.js:125:16)
    at /Users/omairvaiyani/Documents/github/app-server/node_modules/parse-server/node_modules/mongodb/lib/mongo_client.js:101:7
    at Function.MongoClient.connect (/Users/omairvaiyani/Documents/github/app-server/node_modules/parse-server/node_modules/mongodb/lib/mongo_client.js:100:12)
    at /Users/omairvaiyani/Documents/github/app-server/node_modules/parse-server/ExportAdapter.js:38:24
    at process._tickCallback (node.js:368:9)

EDIT:
After looking into it, it seems that the way ExportAdapter connects with MongoClient doesn't account for authentication with email+password within the databaseURI parameter. How do we manage this as I haven't seen this in the migration docs?

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