Failed to test "Create" script in custom DB connection for own database - Mongo connection error

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)]: {} }]

This was related to other scripts…

When you press “Save and Try” make sure other scripts are also defined and does not have default template because “Try” button triggers flow not only currently edited script. If script call depends on other the other script is also called…

1 Like

Thanks for sharing it with the rest of community!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.