Uncaught (in promise) AxiosError (Network error)
import axios from “axios”
import { useState,useEffect } from “react”
axios failed to upload file using base 64 string in React native
I m using following function to call axios
Why am I getting Axios Network Error on Code that Wasn’t Changed?
Could anyone give me some information about axios network error and where it might come from? I keep getting this error but I’m not sure where the error is even coming from. This is the exact error I am getting. I am getting the same error on two different projects. I don’t think I changed anything about the second one for that to stop working.
Any way to wrapped all axios requests within InteractionManager.runAfterInteractions()?
I’ve tried
Axios Network Error in React Native When Connecting to Django API
I was trying to connect my Django server with my react native application but the application failed to load data from the api, and in terminal it showed a axios network error.
I have rechecked the api in the Postman and also in a react js web page , the api is working fine.