Skip to content
This repository has been archived by the owner on Feb 11, 2020. It is now read-only.

Error: invalid schema, expected mongodb #791

Open
kyooryoo opened this issue Mar 15, 2019 · 0 comments
Open

Error: invalid schema, expected mongodb #791

kyooryoo opened this issue Mar 15, 2019 · 0 comments

Comments

@kyooryoo
Copy link

I have a sample code with the titled error when I run:
mosca -c index.js -v
The code of index.js is:

let SSL_KEY = __dirname + '/certs/key.pem';
let SSL_CERT = __dirname + '/certs/certificate.pem';
let MONGOURL = 'mongodb+srv://admin:<passsword>@mypj-oq6wk.mongodb.net/test';
module.exports = {
    id: 'broker',
    stats: false,
    port: 8443,
    logger: {
        name: 'mypj',
        level: 'debug'
    },
    secure: {
        keyPath: SSL_KEY,
        certPath: SSL_CERT,
    },
    backend: {
        type: 'mongodb',
        url: MONGOURL
    },
    persistence: {
        factory: 'mongo',
        url: MONGOURL
    }
};

How could I fix this schema issue?

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

No branches or pull requests

1 participant