issue for login with tokens react and django

I created a project with django and react (with tokken and users login). The project looks like working properly but the issue is that when a user is logged in if stay with no action the following error appear:

Request failed with status code 401
AxiosError:Request failed with status code 401
at settle(http://ip:3000/static/js/bundle.js:101882:12)
at XMLHttpRequest.onloadend (http:ip:3000/static/js/bundle.js:100544:66)
at Axios.request (http://ip:3000/static/js/bundle.js:1001045:41)

Is anyone who can advice how to resolve this error?