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

ObjectId.id issue after upgrading version to 2.x.x #350

Open
rohittailor opened this issue May 24, 2018 · 0 comments
Open

ObjectId.id issue after upgrading version to 2.x.x #350

rohittailor opened this issue May 24, 2018 · 0 comments

Comments

@rohittailor
Copy link

Hi,

To support SSL (X509 certificate based) mongoDB connection, I have upgraded mongojs version from 0.14.1 to 2.4.0 but its throwing following error:

[Error] Error: invalid ObjectId, ObjectId.id must be either a string or a Buffer, but is [{"base64":true,"data":"VsWHAZWlq7w7zDEn"}]
at ObjectID.toHexString (/apps/node_app/hendrix_notification/node_modules/mongojs/node_modules/mongodb/node_modules/mongodb-core/node_modules/bson/lib/bson/objectid.js:93:11)
at ObjectID.toJSON (/apps/node_app/hendrix_notification/node_modules/mongojs/node_modules/mongodb/node_modules/mongodb-core/node_modules/bson/lib/bson/objectid.js:208:15)
at Object.stringify (native)
at Object.module.exports.stringify

In OLD version, SSL is not supported and in new version facing issue.

Please help to resolve this.

@rohittailor rohittailor changed the title ObjectId.id issue after upgading version ObjectId.id issue after upgrading version to 2.x.x May 24, 2018
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

1 participant