iotagent-json
iotagent-json copied to clipboard
mongo warnings
m=n/a | srv=n/a | subsrv=n/a | msg=First connection attempt | comp=IoTAgent
time=2022-03-28T04:32:41.036Z | lvl=INFO | corr=26ce13d7-ae3e-4c41-9f18-475ff9a592e3 | trans=26ce13d7-ae3e-4c41-9f18-475ff9a592e3 | op=IoTAgentNGSI.DbConn | from=n/a | srv=n/a | subsrv=n/a | msg=Attempting to connect to MongoDB instance with url "mongodb://iot-mongo:27017/iotajson" and options {}. Attempt 1 | comp=IoTAgent
(node:1) Warning: Accessing non-existent property 'count' of module exports inside circular dependency
(Use node --trace-warnings ...
to show where the warning was created)
(node:1) Warning: Accessing non-existent property 'findOne' of module exports inside circular dependency
(node:1) Warning: Accessing non-existent property 'remove' of module exports inside circular dependency
(node:1) Warning: Accessing non-existent property 'updateOne' of module exports inside circular dependency
(node:1) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.
time=2022-03-28T04:32:41.107Z | lvl=INFO | corr=26ce13d7-ae3e-4c41-9f18-475ff9a592e3 | trans=26ce13d7-ae3e-4c41-9f18-475ff9a592e3 | op=IoTAgentNGSI.DbConn | from=n/a | srv=n/a | subsrv=n/a | msg=Successfully connected to MongoDB. | comp=IoTAgent
https://www.mongodb.com/community/forums/t/warning-accessing-non-existent-property-count-of-module-exports-inside-circular-dependency/3183
Maybe fixed by https://github.com/telefonicaid/iotagent-node-lib/pull/1215