ExerciseDB

פרמיום
על ידי Justin | מְעוּדכָּן לפני 18 ימים | Health and Fitness
פּוֹפּוּלָרִיוּת

9.9 / 10

חֶבִיוֹן

432ms

רמת שירות

88%

Health Check

100%

חזרה לכל הדיונים

403 error

Rapid account: Samueladi 223
samueladi223
לפני 8 חודשים

it says i haven’t subscribed to the api but i have done otherwise

Rapid account: Justin W Fns XH T 6
justin-WFnsXH_t6 Commented לפני 6 חודשים

Log your environment variable to verify it’s correctly configured

Rapid account: Rajpootrehan 386
rajpootrehan386 Commented לפני 6 חודשים

bro how can you fix this problem tell me please

Rapid account: Seyram 1570
seyram1570 Commented לפני 7 חודשים

i have found the solution

export const exerciseOptions = {
method: “GET”,
params: { limit: “10” }, // use the params to have access to the data and prevent the 403,message about subscription
headers: {
“X-RapidAPI-Key”: “”,
// “X-RapidAPI-Key”: process.env.REACT_GYM_API_KEY,
“X-RapidAPI-Host”: “exercisedb.p.rapidapi.com”,
},
};

export const fetchData = async (url, options) => {
const response = await fetch(url, options);
const data = await response.json();

return data;
};
but when i use the env i get the 403 that i am not subscribe to it. but he i add the key directly it works

Rapid account: Justin W Fns XH T 6
justin-WFnsXH_t6 Commented לפני 8 חודשים

Yes, please visit this url https://support.rapidapi.com/hc/en-us

Rapid account: Samueladi 223
samueladi223 Commented לפני 8 חודשים

alright thanks for the clarification, please how can reach out to them?

Rapid account: Justin W Fns XH T 6
justin-WFnsXH_t6 Commented לפני 8 חודשים

I apologize for you receiving this error but ExerciseDB does not have a 403 error response that is returned. This error comes from RapidAPI itself and unfortunately it’s a common occurrence that I am not able to fix due to it not coming from ExerciseDB. I would highly suggest you and anyone else that experiences this error to reach out directly to RapidAPI.

הצטרף לדיון - הוסף תגובה למטה:

התחבר / הירשם כדי לפרסם תגובות חדשות