All Questions
4,280
questions
-1
votes
2
answers
22
views
Passport JS + React application internal 500 errro
I am creating a general chat application with react, and am stuck while trying to authenticate a user. The axios post request raises a 500 error that I cannot track anywhere. When I put in correct ...
0
votes
0
answers
15
views
How to handle YouTube Data API v3 Error 429, Too many Requests (Resource has been exhausted)
I'm trying to create a playlist on YouTube using the YouTube Data API v3 in my React application. However, I'm encountering a 429 error indicating that my resource has been exhausted. To handle this, ...
0
votes
0
answers
23
views
CORS preflight check Error with iframe in react and ASP.Net iframe Service
I have a Next.js application running locally on http://localhost:3000/ and a Java backend on http://localhost:8080/. I also have a text Editor service running on https://localhost:44349, and this text ...
-1
votes
0
answers
49
views
How do I make an axios request to a backend API in a React/Vite application?
I am using Nginx to serve static files generated from a React/Vite codebase. These static files are served on port 80. (Or 443 if using https.)
What I don't fully understand is how to make requests to ...
1
vote
2
answers
50
views
Setting Cookie No Longer Working After Deploy
After deploying both my backend written in Go (using railway) and frontend written using React (using Vercel) setting cookies no longer seems to work. This wasn't a problem when working with both of ...
0
votes
0
answers
30
views
Handling 411 Length Required Error in Axios POST Request in React Signup Component
I was building a payment app (paytm app) using react, express, mongodb, mongoose, tailwind where i made separate components and pages for the frontend. but when i was just trying to hit backend from ...
-1
votes
0
answers
29
views
React Router: Unable to Redirect to Teacher Form after Login
Problem Description:
I'm working on a login feature in my React application. Based on the user's role and whether they have completed certain forms, I want to redirect them to specific pages. However, ...
0
votes
0
answers
23
views
2 Api Calls on Page Refresh React
I am working on a project where i am stuck on a issue where api being called twice without react.strictmode .
I make a layout(dashboard) which calls an /userdata api and set required states for it . ...
0
votes
2
answers
72
views
What to get the error message in the frontend from the backend
I send a error from backend if a certain condition is matched, now like this I have send multiple errors at multiple situations, so I need to get the message that I send from the backend (node, ...
1
vote
0
answers
35
views
The tables are getting printed on console but not on the screen
I have created a machine learning model and am working on a React application with a Flask backend. I am passing the API data from the backend to the frontend. Although there are no errors, the tables ...
0
votes
0
answers
17
views
Handling Complex Nested API Requests in React.js with Efficient State Management
I'm working on a React.js application where I need to handle complex nested API requests efficiently and manage the state accordingly. The scenario is as follows:
I have an API endpoint that returns a ...
0
votes
0
answers
37
views
React Query useMutation isError is not turning true even when errors are deliberately thrown
I am using useMutation to post data to my server, however, even when deliberately forcing error, my destructured isError is still false.
usecase: I am setting a loading spinner when isLoading is true, ...
0
votes
0
answers
21
views
Passing Data structure and Retrieve Data structure in ReactJs / Aps.Net Core 7 Web application
Frontend
-> This is the my API(backend) call method and Sending object structure
const response = await axiosInstance.put(UPDATE_USEREMAIL, {
userEmail
});
-> This axiosInstance is,
...
0
votes
0
answers
35
views
Mern stack authorization using access token along with a refresh token stored in a cookie
I am trying to intercept responses gotten from my node express server using axios interceptors. The goal of this is to spot whenvever i get a 403 error response status as a result of my access token ...
0
votes
0
answers
20
views
Session value returns to NULL (after setting it in the server side using React Axios)
I am making a sign in page using react.js as front end and express.js and node.js as the middleware. I wrote the signin API in the express node side, so in react when I hit submit button it calls the ...