You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2022/03/25 08:32:40 UTC

[GitHub] [skywalking] youth7 opened a new issue #8742: [Bug] [Nodejs] install plugin error if mongodb driver is

youth7 opened a new issue #8742:
URL: https://github.com/apache/skywalking/issues/8742


   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/skywalking/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### Apache SkyWalking Component
   
   NodeJS Server Side Agent (apache/skywalking-nodejs)
   
   ### What happened
   
   In file `lib/plgins/MongoDBPlugin.js` there is a line contain this code :
   > `this.Cursor = installer.require('mongodb/lib/cursor');`
   
   this will cause en error : `Uncaught Error Error: Cannot find module 'mongodb/lib/cursor'` if version of mongodb driver is `^4.1.3`. But it is fine if mongodb driver is 3.
   
   ![图片](https://user-images.githubusercontent.com/8315732/160083630-ce7172fe-72d3-4a41-befa-d20e58d165b2.png)
   
   
   
   ### What you expected to happen
   
   should support high version Mongodb driver  
   
   ### How to reproduce
   
   use `skywalking-backend-js` and version of mongodb is `^4.1.3`. 
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] kezhenxu94 closed issue #8742: [Bug] [Nodejs] install plugin error if mongodb driver is 4.1.3

Posted by GitBox <gi...@apache.org>.
kezhenxu94 closed issue #8742:
URL: https://github.com/apache/skywalking/issues/8742


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] kezhenxu94 commented on issue #8742: [Bug] [Nodejs] install plugin error if mongodb driver is 4.1.3

Posted by GitBox <gi...@apache.org>.
kezhenxu94 commented on issue #8742:
URL: https://github.com/apache/skywalking/issues/8742#issuecomment-1078809347


   > this will cause en error : Uncaught Error Error: Cannot find module 'mongodb/lib/cursor' if version of mongodb driver is ^4.1.3. But it is fine if mongodb driver is 3.
   
   This means we don't support mongodb 4.x, please consider contributing if you need.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org