I want to fetch a user endpoint from an API but I'm required to use an Id. I fetched the API manually but I'm having errors of uncaught in promise. Below is the error message and the code base. This is given to me to use alongside with the API "8wdkcw05bdEa47R"
VM56:1 Uncaught (in promise) SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
export async function getUsers() {
try {
const response = await fetch('https://cornie-assessment.herokuapp.com/api-doc')
return response.json()
} catch (err) {
console.log(err);
}
}