Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

118
Views
How do I get Auth0 custom action to send Axios Requests

I am trying to use custom actions with Auth0 to create a user profile in my Cloudflare KV through a Worker. I am getting an error of "Request failed with status code 503" and no logs from Cloudflare. I have ensured I have added axios as a package etc. But it isn't working for some reason, and if I do the call normally outside of Auth0 it works fine.

const axios = require("axios");

/**
 * @param {Event} event - Details about registration event.
 */
exports.onExecutePostUserRegistration = async (event) => {
  await axios.post("https://blahblahblah.com/createuser", { params: { "id": event.user.user_id,
  "name": event.user.name,
  "email": event.user.email,
  "image": event.user.picture }});     
};

UPDATE:

I am able to send requests with the cloudflare dev domain so maybe my domain is blocked?

It's just the values are outputting as null now?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

This seems like an issue on your servers end, have you tried changing the Cloudflare dev URL?

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!