Questions tagged [axios]
Axios is a Promise-based HTTP client for JavaScript which can be used in your front-end application and in your Node.js backend.
axios
24,746
questions
0
votes
0
answers
14
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
6
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
6
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
0
answers
11
views
axios - I can't intercept the response
I'm trying to debug why my request isn't sent or is has wrong data, but I'm not able to check the response. I tried 'axios-debug-log' and it shows that request is sent, but no data about response code....
0
votes
0
answers
12
views
Why does React handle a 401 error at updateDehydratedSuspenseComponent?
Problem
In the Developer Tools Network tab, all requests are 2xx success.
I can get Valid data from server
But, 401 error occurs.(this api is not mocked api.)
react-dom.development.js:17497 ...
0
votes
3
answers
26
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
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('...
-5
votes
1
answer
37
views
using axios to delete user in Laravel through 500 error
I have a separate table for users which has all users included the roles like admin, user and referee. Now I would like to make another table to manage data related to volunteers data only everything ...
0
votes
1
answer
31
views
The GET method is not supported for route registrar-articulo. Supported methods: POST - axios post
I am working on a project with laravel 9.
I have a problem with a request in axios, I get the following error:
405 Method Not Allowed
I have already applied the following commands in my project:
php ...
0
votes
1
answer
44
views
How to show data in Vue JS without click paging
I have an issue when I want to show data in VueJS. Previously I have successfully displayed "User Online" data, but the problem is why do I have to click on the page if I want to display the ...
1
vote
2
answers
44
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
0
answers
22
views
Axios 404 error while trying to delete note ASP, Axios
I'm a beginner as an ASP.NET and React dev and I'm trying to create a CRUD project. I'm stuck at the DELETE request. I'm getting 404 error when I'm trying to delete note.
But in Swagger, everything ...
0
votes
0
answers
9
views
Spring Boot does not recognize cookie headers sent with Axios, React Native
I have been coding a React Native app for my Spring Boot backend server. I use basic form login, which requires jsessionid to be sent from the client to be authenticated.
This was my implementation:
...
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,...