0

我是 React 的新手,我正在尝试在 zeit 上进行部署。部署成功,但在 zeit 它给出了类似的错误

/usr/src/app/bundle/programs/server/node_modules/fibers/future.js:280 throw(ex); ^

Error: query parameter ssl is an incomplete value pair
    at module.exports (/usr/src/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/url_parser.js:47:15)
    at connect (/usr/src/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/mongo_client.js:401:16)
    at Function.MongoClient.connect (/usr/src/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/mongo_client.js:225:3)
    at new MongoConnection (packages/mongo/mongo_driver.js:169:11)
    at new MongoInternals.RemoteCollectionDriver (packages/mongo/remote_collection_driver.js:4:16)
    at Object.<anonymous> (packages/mongo/remote_collection_driver.js:38:10)
    at Object.defaultRemoteCollectionDriver (packages/underscore.js:784:19)
    at new Mongo.Collection (packages/mongo/collection.js:99:40)
    at AccountsServer.AccountsCommon (packages/accounts-base/accounts_common.js:23:18)
    at new AccountsServer (packages/accounts-base/accounts_server.js:18:5)

如果有人也遇到同样的错误,请帮忙。

4

2 回答 2

1

我面临同样的错误,对我来说,这是因为我没有传递值为 true 的 ssl 参数。

ssl=true

使用我的 mongo url,所以完整的 url 现在看起来像

mongourl://yoururl?ssl=true&otherparameters;
于 2017-12-23T06:17:34.083 回答
0

错误来自mongodb/lib/url_parser.js这意味着您的 可能存在问题MONGO_URL,可能在 SSL 部分附近。

https://docs.meteor.com/environment-variables.html#MONGO-URL

于 2017-11-15T20:50:43.933 回答