Most voted "axios" questions
AXIOS is a library used for AJAX requests based on files. Use this tag when the problem refers to library usage.
Learn more…196 questions
Sort by count of
-
0
votes1
answer23
viewsRequest get Failing
Hello, I have a problem that is affecting my development. I am developing an application that uses Axios and Vue.js and I wish to make a first get on a data that will go to a props and in that it…
-
0
votes2
answers1371
viewsHow to receive express headers sent by Xios in React.js
My front sends requests with Axios to Node express API this way: class ServiceRequest { constructor() { this.api = axios.create({ baseURL: URL_BASE, timeout: 1000, headers: { 'Content-Type':…
-
0
votes0
answers12
viewsHow do I access a JSON property that contains a hyphen in React?
All right? I have a question and a problem!!! I believe the title speaks for itself.... But how do I access a Json property that contains React hyphen? Example of how the property can be: {…
-
0
votes0
answers54
viewsState 'Undefined' with React
I am making requests to an API through 'Aces', but the following error is happening: My code: import React, {Component} from 'react' import {GridItem, Tabs, Tab, TabList, TabPanels, TabPanel, Image}…
-
0
votes0
answers16
viewsHow to get a response from an asynchronous call in JS?
Hi! I’m doing a query in a database. I need to display this query as soon as possible, and I am not knowing 'encapsulate' it with the await or whatever. The function is as follows: const…
-
0
votes1
answer25
viewsSend CSRF Token Laravel by Node.js - CSRF Token Mismatch Error
Good night! I have an API that was developed in Laravel, and when I am consuming it in NODE.JS with Axios and is returning the CSRF Mismatch Token error So I believe I need to send the Token through…
-
0
votes1
answer19
viewsHow to consume API in Vue to condition a route
I have the following code, I need the const 'exist' to receive information from an api object, I am trying to use Axios but without success. const existe = informação da api; export default [ {…
-
0
votes1
answer1004
viewsRedirect Com Jquery
I’m making a system that makes a requisition ajax with Xios. So far td well, I was able to make the request GET and list all items on the screen in a table. In this table there is a button View…
-
0
votes1
answer1055
viewsHow do I connect my RN app to a local api consuming the data in post?
Good morning guys, I’m stuck since yesterday and need help. I can’t connect the app I’m developing the api that is on my pc. 1° Error 404 2° I don’t know if I’m making the request the right way ( My…
-
0
votes0
answers10
viewsAxios - Server Error Error: Request failed with status code 404
I’m having a problem, I’m doing an authentication but this giving Error: Request failed with status code 404, and I don’t know what’s wrong with the url. import axios from "axios"; import {…
-
0
votes0
answers1744
viewsAxios.Create by changing http baseurl to https
Good afternoon. I have the following code in a study project on Reactjs that I am using Axios for requests. import axios from 'axios'; var url = 'http://site3.htempurl.com'; const api =…
-
0
votes1
answer2001
viewsXmlhttprequest failing due to No 'Access-Control-Allow-Origin' [React/Mongo/Axios]
I have a backend running on localhost with the following code: server.js: const port = 3003 const bodyParser = require('body-parser') const express = require('express') const server = express()…
-
0
votes0
answers83
viewsProblem with the interaction of an http server with Arduino and Axios js
I am creating an http server on Arduino, which given a request it responds to the following: client.println("HTTP/1.1 200 OK"); client.println("Content-Type: text/html"); client.println("Connection:…
-
0
votes2
answers2574
viewserror in post request using server-side buttons
Good afternoon, I am creating a function in an api that will make a request via post, I did using fetch on the page with reactjs and now I have to migrate to the api but when making the request it…
-
0
votes0
answers1273
viewssaving authentication data in localStorage React js
I am developing an application in Reactjs and using Axios to work with requests and need to keep user data saved in localStorage, but something is missing in my code, as this giving Undefined in the…
-
0
votes2
answers538
viewsHow to pass parameters from Component to vuex in an Laravel and vuejs project?
I am using in my project Vuex with modules and Axios to work with the API created in Laravel, how to pass parameters in an edition of a data recovered from an API I have my Store export default {…
-
0
votes2
answers276
viewsDoubts about the import and overall use of Axios in Vuejs
I am using Axios in one of my projects with Vuejs, my doubt is directly linked to the global import form of the plugin. Currently I’m doing so: Create a /plugin/Axios.js file with this code: import…
-
0
votes1
answer31
viewsChange array Response to object
I’m doing a get and the answer is coming like this: [ {"cep":"01050-070", "rua":"Rua Álvaro de Carvalho", "bairro":"Centro", "cidade":"São Paulo", "estado":"SP"} ] I’d like Re sponse to come like…
-
0
votes0
answers119
viewsPromise inside Premomise does not wait Axios
Eae guys I’m having a problem, I get several objects where I mapped them, make an external query using the Axios and save your return. Let’s go to code: let savedClients =…
-
0
votes1
answer705
viewsError in the request
Hello I have a small problem and the following I am creating a firebase cloud Function that makes a request here the code: const functions = require('firebase-functions'); var axios =…
-
0
votes1
answer197
viewsWhat problem is occurring in Axios with this HTTP call?
I’m trying to make a call HTTP, but as a beginner I’m not able to find the error.. I already tested it on the emulator and the error which is displayed as follows: 0, _loginService.autenticacao) is…
-
0
votes0
answers190
viewsParse error while uploading images from Xios
I’m trying to send images via POST method in Xios, but when I run the script, it gives me this error: error: { code: 500, error_id: 'server_error', description: 'Error parsing request into form…
-
0
votes0
answers552
viewsCross-Origin Request works on Postman, but not on frontend
I need to access my API for sending emails, but every time I try to do it through my application’s frontend I get a CORS error saying Cross-Origin Request Blocked: The Same Origin Policy disallows…
-
0
votes0
answers799
viewsHow to provide login and password to access an api with vueJs and Axios?
I’m getting an error: Request failed with status code 401 when trying to connect to an api using Vue and Axios, I am completely new to consuming api, in case it is a Django Rest, which is the…
-
0
votes0
answers133
viewsSimulate Login on A site
This is devs, I’m all day trying to implement a way to login to a site with Javascript, it’s my university website, and I’d like to monitor when new notes are released, so I don’t have to go to this…
-
0
votes1
answer497
viewsRequest blocked by CORS - Vue and Spring Boot
I have a Spring Boot API and a Vue application, both running locally, but I can’t make a PUT request from the Vue application for API. If you send a GET request, it works perfectly. I tried,…
-
0
votes1
answer160
viewsBring back multiple filtered Django Rest data
Good morning, How do I bring multiple data from Django Rest, for example : instead of appearing the id of the students I want to bring the names... I don’t know if it’s possible but I hope it is...…
-
0
votes1
answer169
viewsReact: Display HTML in modal React Boostrap
I’m developing a SPA in React for an event and need to consume a folder with files HTML and display them in a modal of the React Boostrap, basically I have a section where is displayed all the…
-
0
votes1
answer205
viewsHow to handle CORS prefilight request?
I have a problem in a study project, I gave a "googlada" and learned that whenever I make a first request defining headers for an Api, this request will be as OPTIONS, so that the browser receives…
-
0
votes1
answer485
views400 Bad Resquest Error in React Native with Axios
I made this code based on a React project. Using Axios and React Native, I am trying to return the data from the array, but it is only returning in the log an error 400 in the request of the api.…
-
0
votes1
answer308
viewsUpdate Table automatically when deleting the record
Hello, I would like to know how to update the table automatically after deleting some record, however, every time I delete a record, I have to refresh the page again, and so I used the function…
-
0
votes1
answer61
viewsError registering user in database with Nodejs + React Native
I’m not getting past the values I put in TextInput for the data set. When I click the button for the object to be sent to DB, the object sent will be empty, this is the answer of console.log: Object…
-
0
votes0
answers199
viewsCleaning function in useEffect is not working
Hello! I am trying to cancel my api call using Axios when the component is unmounted, and although it seems to be being canceled, I still get the error: Can’t perform a React state update on an…
-
0
votes1
answer160
viewsProblem when viewing API Nodejs with Axios
Problem I am not consulting my API nodejs with Axios. I have tested the backend numerous times with Postman and everything works correctly, Focusing with Xios always returns the same error. If…
-
0
votes1
answer1193
viewsActive React application does not connect to Node.js server on my laptop
I’m developing an app in React Native, using the expo. I have a Node.js API running on my Macbook. Both my phone and laptop are under the same Wifi network. In the app, I have an API call pointing…
-
0
votes1
answer337
viewsI cannot authenticate to the Laravel api using Sanctum
I am using the Standard Sanctum to generate access tokens for my api. I have followed the step-by-step documentation of the Standard. I generated a token. But when I go to access a route that…
-
0
votes1
answer510
viewsBasic authentication request does not work
I made a simple program to fetch the user token, but it needs a Basic Authentication, which has given me the error below. Where am I going wrong? My code: <a href="#"…
-
0
votes1
answer321
viewscompose a POST type request using a PROMISE function
I am a python programmer and I am programming now in javascript with Nodejs, I am already able to program normally but a doubt that is not letting me progress in the language is the issue of the…
-
0
votes0
answers54
viewsanswer with empty mongodb + vuejs array
I am doing the front of a very silly application just to train,the backend is all done and running right tested several times with insomnia,so now on the front I can’t get the data in the database…
-
0
votes0
answers118
viewsHow to go through the data of this element
I have the following data element stored in a vector called Repositorios = [] (2) [{…},{…}] 0: rocketseat: Array(30)0: {name: "academy-facebook-auth", description: null, login: "Rocketseat"…
-
0
votes1
answer177
viewsHelp with API/useEffect - React
I need to make a call to the API with React and for that I’m using Axios. Doing a test with the code below, on the console I can see the result: const [bill, setBill] = useState([]); useEffect(()…
-
0
votes3
answers86
viewsvuejs returns student object null when trying to search student by id
Galera. I have a problem right now. I was able to solve the 400 error, but now I’m not able to return the student’s data by the student’s id. Follow my code below: data() { return { student: { name:…
-
0
votes0
answers23
viewsReact Hook does not accept value returned from an Axios template
As you can see I created a state called cur and within the map of the mat array, I’m making a request and I want to add the answer inside the event. But when I give console.log down there the state…
-
0
votes1
answer65
viewsHow to add the answer to an Axios request in an Array?
I am trying to put the answer to an Axios request inside an array, but I am receiving as a response a strange structure, as I will show in the following image: I created an Array, added my own name…
-
0
votes0
answers115
viewsmalformed calls from js field Sizes are Different
I’m trying to send an array of images to the Back-End but React Native shows this error: Malformed calls from JS: field sizes are different I don’t know this mistake and I can’t find a solution.…
-
0
votes1
answer276
viewsUnauthorized Token Authentication with Node, Vue, Xios and jwt
I’m in the middle of a course where on a provisional basis we’re using a fixed token validator in the application in this way: require('axios').defaults.headers.common['Autorization'] = `bearer…
-
0
votes0
answers59
viewsGet Access Token after login - React + Axios
I’m trying to globally set the token based on the login function response. Previously received in response the token information, but now, no more... Accessing the developer tools, Chrome Network…
-
0
votes0
answers179
viewsError with JSON.parse in React-Native + Xios
I’m using Aces to fetch data from a PHP API. I get a reply with the data expected in React-Native, however when using the function JSON.parse() get the bug: "[Syntaxerror: JSON Parse error:…
-
0
votes0
answers32
viewsHow to take the value of a reduce the tag to appear in the view - VUE.JS
I’m trying to set up a panel, and I want to take the added values of a reduce to appear in the view Inside the budgets, there’s an array of value, and I’ve done the methods to add methods: {…
-
0
votes0
answers51
viewsapexcharts series values do not appear
I’m trying to understand the value of an array I’m pulling from the back inside an apexchart chart, but it’s not returning anything, the chart appears blank the callback mounted() { this.uChart() },…