All Questions
4,676
questions
0
votes
0
answers
25
views
Link from react-router-dom is not redirecting
Since the button is within a <Link /> Component it shoul redirect to the '/home' page but it is not, its not redirecting anywhere. the function PostLogin is being Called i have confirmed
<...
0
votes
0
answers
7
views
Axios cannot handle binary response and returns 500
I have a middleware server build with nodejs. I use it to communicate with different APIs. One of the endpoints is to get a pdf file that comes in binary format like
%PDF-1.4
%����
1 0 obj
<<
/...
0
votes
3
answers
30
views
How can I store the response of my axios get request as json in node.js?
I'm trying to send a request to an api using axios and store the json response in a variable. When I output the response to the console, it shows it, but when setting a variable equal to it and ...
0
votes
1
answer
38
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('...
1
vote
2
answers
45
views
Cannot post image as a form payload element to Node.js API
I am struggling very hard with Javascript under Node.js, which should read a file from disk and post it via a post-request to DeepStack Facial Recognition system to do something with it.
I currently ...
0
votes
1
answer
41
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
32
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
18
views
Cant use 'axios.post' method
I was scrapping a instagram downloader website using post method but it is showing >>> **cause: Error: write EPROTO 9C3B0000:error:0A000410:SSL routines:ssl3_read_bytes:sslv3 alert handshake ...
0
votes
1
answer
42
views
How to configure axios to use SSL certificate with an umbrella proxy pac?
We're trying to use axios to contact some APÏ using a proxy pac umbrella.
We're using the conf we've seen around here but have the same error as this topic :
How to configure axios to use SSL ...
0
votes
0
answers
31
views
Axios returns 400 with application/x-www-form-urlencoded
What is the correct way to send application/x-www-form-urlencoded with axios?
I am following the documentation provided here: https://github.com/axios/axios?tab=readme-ov-file#using-applicationx-www-...
0
votes
0
answers
41
views
How to handle deliberate errors for testing Axios requests with invalid credentials in Node.js?
I'm developing a Node.js script that interacts with the Microsoft Graph API using Axios for fetching user information and group memberships. To test error handling scenarios, I deliberately used ...
0
votes
2
answers
44
views
Reactjs and Nodejs access/refresh jwt token authentication
I have a problem with the refresh token, login API sends accessToken (expiration: 30s), refreshToken (expiration: 5min), and cookie 'refreshCookie' (expiration: 5min). This API works correctly.
login....
1
vote
1
answer
27
views
how to resolve localhost not secure problem with vite?
I'm working on a personal project developed with react + tailwind + vite. in my sign-up component, I need to POST some information from the client side ( localhost:5173 ) to the server side ( ...