// Using the example id of "60735" and the query of "tv"
const url = "https://api.consumet.org/meta/tmdb/info/60735";
const data = async () => {
try {
const { data } = await axios.get(url, { params: { type: "tv" } });
return data;
} catch (err) {
throw new Error(err.message);
}
};
console.log(data);
Expected behavior
it should return the movie details
Actual behavior
{"statusCode":500,"error":"Internal Server Error","message":"Request failed with status code 401"}
Describe the bug
tmdb search returns 500
Steps to reproduce
import axios from "axios";
// Using the example id of "60735" and the query of "tv" const url = "https://api.consumet.org/meta/tmdb/info/60735"; const data = async () => { try { const { data } = await axios.get(url, { params: { type: "tv" } }); return data; } catch (err) { throw new Error(err.message); } };
console.log(data);
Expected behavior
it should return the movie details
Actual behavior
{"statusCode":500,"error":"Internal Server Error","message":"Request failed with status code 401"}
Additional context
No response