Action to Store the Auth0 user id in a remote system doesnt work..?


I’m attempting to use the Action that Stores the Auth0 user id in a remote system.

However, it doesn’t work. The error I get is simply:

“Error! API Error. Please contact Auth0 if error persists.”
Below this message, the second error message just shows up as a blank object: “Error: {}”

Here is my test code, which is completely based off of the example given by Auth0:

const axios = require("axios");

exports.onExecutePostUserRegistration = async (event) => {

  await"postgres://<my_environment_name>:<my_password><database name>/<table name>", { params: { email: }});


I have set up my database exactly as per the instructions noted here. It is a web-based Elephant PostgresSQL database.

Note that the step to Create a user and send to that same external database works just fine for me (under Authentication, non Action- based). So, does the problem lie somewhere within the Actions API?

Can anyone else get this to work?

Thanks and Regards,

I’m trying this integration right now… but haven’t gotten it to work yet…