Ready to post? First, try searching for your answer.
Hi there
I am experiencing an error when trying to use the ManagementClient in my Next.js application. The error received is: FetchError: The request failed and the interceptors did not return an alternative response when I run const getUser = await AUTH0_MANAGEMENT.users.get({ id: "<id here>", });
I have my ManagementClient initialised like so. I also created a Machine to Machine instance and used the client ID and client secret from there but that didn’t help matters.
const AUTH0_MANAGEMENT = new ManagementClient({
domain: "<domain here>",
clientId: "<client id here>",
clientSecret: "<client secret here>",
});
Does anyone have any ideas? I’ve read three other threads on here which haven’t helped me at all unfortunately. I tried installing dd-trace with version v5.12.0 as suggested in one of them - no luck though. Have tried just about everything I can think of including installing different previous versions of the auth0 package.