Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tiavina-mika opened this issue Feb 1, 2021 · 2 comments

Comments

@tiavina-mika
Copy link

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

@badboy-tian
Copy link

+1

@dplewis
Copy link
Owner

dplewis commented Oct 30, 2021

@badboy-tian I’ll look into this issue within the week. What version of MySQL are you using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants