Error 404 not found while fetching api in react | Axios | Err Bad Request [Solved]

preview_player
Показать описание
In this video I am demonstrating how to solve the error of bad request (404)
Рекомендации по теме
Комментарии
Автор

const onFinishHandler = async (values) => {
try {
const res = await axios.post('/api/v1/user/register', values);
if (res.data.success) {
message.success('Register success!')
navigate('/login');
} else {

}
} catch (error) {
console.log(error);
message.error('Something went wrong')
}
}; still getting this error any solution ?

abidhossain
Автор

I'm getting the problem of axiosError and Internal Server Error.
"AxiosError {message: 'Request failed with status code 500', name: 'AxiosError', code: 'ERR_BAD_RESPONSE', config: {…}, request: XMLHttpRequest,  …}"

code: const newMessages = [...messages, userMessage];

const response = await axios.post("/api/conversation", {
messages: newMessages
});

I'm actuallty made a GPT Conversation Model. Yesterday it was working great but don't know what happened it is not giving answers to prompt and in console this error is showing!!


Please HELP!!!

LearnWithoutSchool
Автор

Can u make video on 304 not modified....i m getting response in v
Console but not being rendered

advaitnaik
Автор

Hello, I’ve been dealing with a similar error, I’m getting errror 404 not found. I didn’t create a proxy, I used a regular localhost. I’m unsure how to fix this

mambacurry
Автор

hi, can I have your discord id by any chance to ask questions?

chillax