Skip to content

Unable to ensure uniqueness for usernames: Parameter "url" must be a string, not object #33

@tiavina-mika

Description

@tiavina-mika

hello.

I've got this error when connecting to the database: Unable to ensure uniqueness for usernames: Parameter "url" must be a string, not object

here is my code:
`
const MySQL = require('parse-server-mysql-adapter');

const mysql = new MySQL('mysql://c1439623d_dev:xxxxx@localhost:3306/dev');

const parseServerAPI = new ParseServer({
databaseURI: mysql.getAdapter(),
cloud: path.resolve(__dirname, 'server/cloud/main.ts'),
appId: APP_ID,
masterKey: MASTER_KEY,
serverURL: SERVER_URL,
appName: APP_NAME,
});
`
image

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions