Error Axios Client Credentials

Hey,
when i am using axios to update my secrets i got a 404 error.
I dont know why but when i am using postman with the exact code it works.

var config_renew = {
        method: "post",
        url: "https://id.twitch.tv/oauth2/token?client_id=xxx&client_secret=xxx&grant_type=client_credentials",
        headers: {},
      };

      await axios(config_renew)
        .then(async function (response) {
         xxx
        })

AxiosError: Request failed with status code 404

Thanks in advance!

Fixed after axios update to 1.1.0

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.