Action to Store the Auth0 user id in a remote system error

Hi there,

I am new to Auth0 and I am hoping to get some guidance on this.

I am trying to add new user info to my backend database when a new user signs up. I have followed the instructions to add an “Action” to “Post User Registration”, however, I am getting a 400 error. It says the request URL is “https://[domain]/u/signup?state=somethingsomething”.

const axios = require("axios");
exports.onExecutePostUserRegistration = async (event) => {
  await axios.post("http://localhost:1234/users", 
  { params: { email: event.user.email }});
};

I am not even sure where to debug? Could anyone please provide some guidance?