Getting invalid_argument in onExecutePostUserRegistration

Hi,

I have following set in my custom action:

const axios = require("axios");
/**
* Handler that will be called during the execution of a PostUserRegistration flow.
*
* @param {Event} event - Details about the context and user that has registered.
* @param {PostUserRegistrationAPI} api - Methods and utilities to help change the behavior after a signup.
*/
exports.onExecutePostUserRegistration = async (event, api) => {
  await axios({
    method: 'POST',
    url: 'https://<public_url>/user/register',
    timeout: 30000,
    followRedirects: true,
    headers: {
      'x-api-key': 'x-api-key'
    },
    data: event
  });
};

When I run this from the action test module, I am seeing my API get invoked correctly and the event object getting added to my logs. Whereas whenever this action is called from the post user register action flow, it aways fails with following error:

{
  "action_name": "RegisterUser1",
  "response": {
    "error": {
      "code": "ERR_BAD_REQUEST",
      "message": "Request failed with status code 400",
      "name": "AxiosError",
      "stack": "AxiosError: Request failed with status code 400\n    at settle (/data/layers/layers-1fq2/1fq2LDRpkYkKufX5BMQcIimsp49kqyEBFtzLMzXoNYU/node_modules/axios/dist/node/axios.cjs:1913:12)\n    at IncomingMessage.handleStreamEnd (/data/layers/layers-1fq2/1fq2LDRpkYkKufX5BMQcIimsp49kqyEBFtzLMzXoNYU/node_modules/axios/dist/node/axios.cjs:2995:11)\n    at IncomingMessage.emit (node:events:525:35)\n    at IncomingMessage.emit (node:domain:552:15)\n    at endReadableNT (node:internal/streams/readable:1359:12)\n    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)"
    },
    "stats": {
      "total_request_duration_ms": 1134,
      "total_runtime_execution_duration_ms": 1130,
      "runtime_processing_duration_ms": 4,
      "action_duration_ms": 1126,
      "boot_duration_ms": 4,
      "network_duration_ms": 4
    }
  },
  "error": {
    "id": "invalid_argument",
    "msg": "Invalid Argument"
  },
  "started_at": "2023-09-13T03:55:22.897231985Z",
  "ended_at": "2023-09-13T03:55:24.031866022Z"
}

I have verified the API works when called from postman.
I have verified the API works when called from custom action test window.
Just to be on the safe side, I have also set the CORS to accept from all ‘*’.

The API is a dotnet webapi. Any help would be greatly appreciated.

same problem here.
auth0 and 0 support from them.