All Questions
7 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 ...
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.
...
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 ...
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 ...
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 ...
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-...
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 =&...