The script for “Create” user always return mongo error does matter if script is empty or has some code this is internal Auth0 error for testing this script in UI…
We do not use Mongo we call our public API…and script has nothing to do with mongo… but calls mongo connect before it runs the custom script function… We did not use mongo template or nothing with mongo…
Please fix it…
Error:
MongoNetworkError] failed to connect to server [localhost:27017] on first connect [Error: connect ECONNREFUSED 127.0.0.1:27017 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16) at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) { name: ‘MongoNetworkError’, errorLabels: [Array], [Symbol(mongoErrorContextSymbol)]: {} }]