All Questions
176
questions
0
votes
1
answer
45
views
Uncaught runtime errors: Network Error AxiosError
Uncaught runtime errors:
×
ERROR
Network Error
AxiosError: Network Error
at XMLHttpRequest.handleError (http://localhost:3000/static/js/bundle.js:476728:14)
at Axios.request (http://localhost:...
0
votes
0
answers
13
views
Cannot get cookies to my backend! I'm using MERN stack
Hello i'm working on this project solely for my learning purpose. So I have created the backend with some middlewares, routes etc.
This is my folder structure in backend
express.js server folder ...
0
votes
0
answers
116
views
AxiosError 'Request failed with status code 404', code: 'ERR_BAD_REQUEST' on reactjs
I'm practing user authentication and Login in reactjs.
I'm having this error when accessing the home route, '/', however it does not seem to come up when I'm accessing any other routes. By default, ...
0
votes
0
answers
14
views
Saving MCQ Question Data to MongoDB from React Component and Retrieving on Another Page
I'm developing an MCQ (Multiple Choice Question) component in React. Each question is stored in a JSON file with format below:
{
"id": 1,
"topic": "Topic 1",
"...
-1
votes
1
answer
570
views
Next.js 14: Client-side data fetching not working (user profile data)
I'm encountering an issue with client-side data fetching in my Next.js 14 application. Specifically, I'm attempting to fetch user profile data from a backend API using Axios within a component, but ...
0
votes
0
answers
73
views
Getting error: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'data') at handleSubmit. Request is timing out, MERN app
I have a registration page that is supposed to post user input from a form:
// Registration.jsx
import React, { useState } from 'react';
import axios from 'axios';
const Registration = () => {
...
1
vote
1
answer
1k
views
How to properly call an API inside a Next.js application
I've been trying to understand what's the proper way to call an external API from a Next.js application, because I'm used to developing MERN stack apps, I usually use axios for my API calls and use ...
0
votes
0
answers
31
views
Blank pages pdf sent to client with Pdfkit
i am using pdfkit to generate pdf from my mongo database and then send the generated pdf to the client. the problem is the pdf is been generated and a copy of the pdf saved in the server works very ...
0
votes
1
answer
309
views
Axios network error in Nodejs and React Native Expo
I am using Nodejs, Express, MongoDB, and React Native expo. I created a simple register form. I tested my REST API for registering users using Postman. Still, when I try registering the user using the ...
0
votes
1
answer
30
views
Trouble updating a blog in my CRUD application using Axios - getting 404 error
I'm building a CRUD application for my blog, and I'm facing an issue specifically with updating a blog entry. I've successfully implemented the functionality for creating blogs and retrieving a single ...
-1
votes
1
answer
43
views
why getting 400 error in console.log after email exists
my problem is I am getting 400 error in console . I don't even write console.log() statement in either API or react . is there any solution or should go with this . I am new to this MERN . I am a ...
-1
votes
1
answer
93
views
Axios POST Request to Backend '/user/signup' Endpoint Results in Internal Server Error
I'm encountering an Internal Server Error (HTTP 500) when making an Axios POST request to the '/user/signup' endpoint in my web application. This issue is bit hard to find, and I'm seeking guidance to ...
0
votes
1
answer
72
views
Getting an Axios POST Error when trying to post my firm data to MongoDB Atlas server
I am working on a MERN stack project where I have to post the form data to my MongoDB Atlas Database. In my UserForm.js file I use axios to send the form values to the server to save it to the ...
0
votes
1
answer
57
views
Geeting axios error (500 Internal Server Error) unable to fetch ID
This is ShowBook react code
ShowBook.jsx
`import React, { useEffect, useState } from 'react';
import axios from 'axios';
import { useParams } from 'react-router-dom';
import BackButton from '../...
0
votes
0
answers
27
views
MERN: Axios returns data as undefined. Probably issue with async data fetching
I am developing a MERN app which is an online bookstore. I'm using Axios for fetching data from MongoDB. The data is based on several mongoose models that are connected:
Author model: firstName (...