Thank you @bajcmartinez . Error fixed. In my tenant, it used Node 18, then I changed it to NodeJS 16 and import mongodb version 4.1.0 version (const MongoClient = require(‘mongodb@4.1.0’).MongoClient;). Now it works without any error.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Auth0 not connecting to MongoDB | 2 | 1444 | December 7, 2022 | |
New MongoDB version is not supported in Auth0 | 6 | 1708 | May 26, 2023 | |
I need help with log in error OP_Query | 19 | 4480 | May 17, 2023 | |
Problem with Auth0 and MongoDB | 2 | 746 | October 16, 2023 | |
401 - Unauthorized when connecting to mongodb custom databas | 0 | 294 | April 17, 2024 |