Skip to main content

All Questions

2 votes
0 answers
527 views

Unauthorized response to POST request after JWT token refresh in Django

Goal: I am trying to get access to specific user data using JWT. Specifically, I aim to get the user id from the JWT token using request.user.id. Problem: I am able to run the api and refresh the ...
user19020361's user avatar
0 votes
1 answer
489 views

400 (Bad Request) when sending a post request from React to Django

I'm trying to use react and redux to create a simple login page. When I click on the login button I get the error 400(Bad Request) from both frontend and backend. I'm using simplejwt authentication. ...
C-Bizz's user avatar
  • 654
2 votes
0 answers
1k views

React App gets stuck in Loading component

I downloaded a React Admin Template to learn, i am using Django with django rest framework as a backend technology. I am having trouble showing the backend information in the front-end. I already ...
hrygvo's user avatar
  • 21
1 vote
1 answer
690 views

TypeError: order is undefined

I'm very new to react-redux following this tutorial to create ecomme website ,so here's a order screen to place a payment after hitting the place order button but it is showing error saying 'order' is ...
Ruchita Deshmukh's user avatar
0 votes
1 answer
1k views

Post Request shows 403 not found error even tough permission class in django rest framework view sets is set to allow any

I am trying to store the data in the form using post method. To do that i have set the permissions as AllowAny. I have checked the POST method using Postman and it works but when I use axios to post ...
kumar shivam's user avatar
3 votes
1 answer
6k views

How to increase axios speed?

Because I'm new to using axios so I usually have a trouble in using it. Specifically, I'm making a react-infinite-scroll feature now, but when I compare its speed with other site, my post(react-...
1Sun's user avatar
  • 2,365
3 votes
1 answer
2k views

Django rest-auth Token authentication

I'm trying to use axios to get information from the /rest-auth/user/ page. This is my function: export const fetchUser = () => { const token = localStorage.getItem('token'); return dispatch =&...
peter's user avatar
  • 1,582