All Questions
1,891
questions
0
votes
0
answers
7
views
Axios Post Still Blocked Even Though "Access-Control-Allow-Origin", "*" Set On server
In my backend I've set the following endpoint
router.post("/sign-in", async (req, res) => {
try {
//Extracting email and password from the req.body object
const { email, ...
0
votes
0
answers
8
views
Node.js Express Server with Axios and MySQL2 stuck in pending preflight OPTIONS request
I am developing a service system where the customer picks up a ticket to be served and the counter selects the ticket numbers of the customers who are waiting in sequence. It is a system that works on ...
0
votes
1
answer
37
views
Getting 404 AxiosError: Request failed with status code 404
Could you please help me to solve the problem with the routes.
In result I have the next code:
// server/index.js
// server/index.js
const express = require('express');
const bodyParser = require('...
0
votes
1
answer
37
views
How to send several vars to client
I want to send to client many objects and one var, but i don't understand how to choose response that i want and create the var on client.
Server code:
var isAdmin = false;
app.get('/main', async (req,...
-2
votes
0
answers
17
views
Node js express Events app problem how to resolve this
I have a problem with an exercise where I need to create a list of events, using Node.js, express, socket.io and AXIOS to handle POST and GET requests. Unfortunately, the creation of the event list ...
1
vote
0
answers
31
views
Need help optimizing request forwarding for Node JS API
I am trying to write a front facing API route that will receive an incoming HTTP post request and forward it to a separate server of mine for processing. The reason I have this front facing API is ...
1
vote
0
answers
31
views
Post form data inside an array of objects
Hello I've been working in a blog to post blogs, you can add images too
For add image system i use Multer and Path.
To save the image, I save it in a FormData, with its key, so Multer can read the ...
-1
votes
0
answers
19
views
Passport.js Error Handling Instead of throwing the error into stdout
So I Have The Current Code For Authorization (and im probably going to merge login with signup):
Strategy:
const passport = require("passport")
const { Strategy } = require("passport-local")
const ...
-1
votes
1
answer
40
views
Postman: Status 404 [closed]
I am looking to send a confirmation email after a customer fills out a form to book an appointment. I was recommended to use 'resend'. I developed a React extension where the form is located, and I am ...
0
votes
0
answers
17
views
how to download file from express res.download() using axios [duplicate]
client.js // using vue
function downloadFile() {
api
.get(`/download`, {
responseType: "blob",
params: { fileName: downloadFilename.value },
// ...
0
votes
0
answers
34
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 ...
0
votes
0
answers
32
views
Why is my request to my backend server pending? I am using Nginx, ALB with ECS Fargate
I am trying to make an api request to my backend server but it is giving be pending/timeout error. After sometime I am also getting 502 bad gateway error Everything is working as expected in localhost ...
0
votes
1
answer
46
views
Axios GET request to fetch tweets for specific user, returns 500 error, route not being reached
I'm working on a Twitter clone and encountering an issue with fetching tweets for the authenticated user. Despite having a valid token and other routes working correctly, the /tweets/user route is not ...
0
votes
1
answer
53
views
Cookies aren't sent over Vercel
Site works great when backend and frontend are deployed locally (on two different ports) but cookies won't send when I run it on Vercel. I even tried running the front-end locally using the back-end ...
0
votes
2
answers
76
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, ...