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
-
1
votes1
answer1618
viewsHow to submit a post request with files and json?
I have a form to send data to my server. In this form I have some input fields and a file upload. This is the sending of my form. submit () { console.log(this.banners) const banners = new FormData()…
-
1
votes1
answer167
viewsAxios instance does not return in nodejs export
I’m trying to return the instance created through the module.exports, but when I try to use it it gives me that mistake: http(...). get is not a Function My http-common.js file var axios =…
-
1
votes0
answers596
viewsPassing simple array with Axios
Goodnight. I’m trying to replicate an API call that I make in Postman in Windows of my Vue.js application. In Postman I pass a token and in my JSON call body I pass the following simple array to…
-
1
votes0
answers1567
viewsFormdata with Axios in Node.js
When I try to make a request using form-data with Node, the Springboot application that receives the request says it doesn’t have "Boundary". And when I put any value in "Boundary", the application…
-
1
votes1
answer1924
viewsRequest is presenting Cross-Origin Request Blocked in Reactjs app
I am developing an application in React and previously created a restful API with Node and express, in my api I added the module Cors const cors = require('cors'); and added it at the boot of the…
-
1
votes2
answers347
viewsUse Axios to generate an unordered list using the Github API
I have a code that should receive the client’s Github username and generate a list with the name of its repositories. The list is generated, but always returns undefined. The result would be…
-
1
votes2
answers1017
viewsImage upload React Axios and PHP
I need to make a posting system that includes image and post data with Reactjs, Axios and PHP(yes, php). No Reactjs const post = async (formData) => { const image = new FormData()…
-
1
votes1
answer92
viewsProperty coming as Undefined?
When I try to access the full_name property of the user object with useState, the application says that the property is Undefined. Here is the code: import React, { useState, useEffect } from…
-
1
votes1
answer303
viewsHow to return a value instead of a [Object Promise]
I have this code and want to return the string not to Promise, but I do not know how exactly to do, I tried to look at other solutions on the site but I could not apply them in my code. (I’m using…
-
1
votes1
answer219
viewsAxios + . Net Core - Post with file
I need to send the data of a form along with the Axios file and return a JSON with . netcore, I can receive the file normally in the controller but the form data cannot receive. Follows JS code…
-
1
votes2
answers269
viewsHow to call and get via GET an external HTML page using Axios?
I am trying to get any external html page via an Axios.get(), passing the url of the page in question as parameter: axios.get("http://www.google.com") .then(resp => { retorno = resp.body }) Only…
-
1
votes2
answers835
views -
1
votes2
answers575
viewsHelp with Promisse {<Pending>}
Talk personal, all right? I’m doing a role that will be responsible for validating the ZIP code informed by the user. Basically in the call of an API the user will send the ZIP code on body and I…
-
1
votes1
answer191
viewsAxios returning HTML data, not JSON
I am developing small project to learn Act and I came across the following problem. When making a request in an Axios API by passing input as parameter to the route, Axios is returning an HTML, not…
-
1
votes1
answer39
viewsUse value that is filled after a Promise
Guys, I’m developing an application that, according to the code below, searches the data in an API and with the result of this, makes other calls and makes a push in a variable, how can I access…
-
1
votes0
answers34
viewsNoreversematch with Keywords Arguments even if there is a route
I am trying to send an id to the url using Xios with the following line: const request = axios.put("{% url 'forms:save' card_id=card.card_id %}", this.body_text_value).then(response =>{…
-
1
votes1
answer39
viewshow to select an Array within an api in React?
You guys talking? All right? I have a problem in my React application with an api, you could help me? I want to show the names of the Pokemons of an api, but the array that gets the names of the…
-
1
votes0
answers54
viewsConsume Youtube API v3 with React Native to list videos on a Flatlist
I really need your help, I am beginner in React Native and I want to do a Flatlist with the videos of a channel of Youtube, but I don’t know how to do the integration of AXIOS or Fecht with the…
-
1
votes1
answer40
viewsHow do I specify the consumption of an API in React?
all right? I’m starting now in the world of React and I have this little problem in question. How do I specify the consumption of a specific Array with React? For example: "count": 1118, "next":…
-
1
votes2
answers123
viewsonclick event is not calling the function
The onclick event is not calling the desired function HTML: <!DOCTYPE> <html> <head> <script type="text/javascript" src="main.js"></script> <title> app…
-
1
votes0
answers154
viewsHandle errors in Next.js and Axios
I’m making a Next.js application that uses Axios to make requests. The information I use of the API is coming normally but I would like to handle the returned errors better. Currently my code only…
-
1
votes1
answer77
viewsPass return of a request Axios to component using props in Vuejs
I’m using data from a request via Axios to popular a component form, step these values via prop for some components within this form. The problem is that some components use the data within the…
-
1
votes2
answers59
viewsHow to reload date after a Vuejs action
My list remains the same after deleting an item, only refreshes when I hit F5 on screen. I’ve tried using componentKey, but it only works when I click 2 clicks. Follow current component code:…
-
1
votes0
answers25
viewsConcurrent React JS requests with queued AXIOS, without using Promise.all or Promise.allSettled
I have the following situation: a form with a single input and a list with results that will be displayed on screen. The idea is for the user to enter a code in the input, and when changing the…
-
0
votes1
answer154
viewsConvert Response date from HTML to PDF
My response.data is returned a billet in HTML format, I want to convert it to PDF. How do I? Below a part of the code: imprimirboleto: function () { axios({ method: 'get', url: '/server/boleto',…
-
0
votes1
answer406
viewsHow to make the Laravel project see the Xios file?
Before I was having trouble getting the project to see the Vue file as you can see in this post: I need to make my Javascript file see the Vue and Axios files He was like this : And now it’s like…
-
0
votes1
answer441
viewsProblem when mapping api with Axios and React,
Good afternoon guys, all right? I am trying to make an application with React, however, when trying to map a random API, to try to render the data, it fails to return what I am trying to pull. Would…
-
0
votes1
answer749
viewsSet up headers in Axios?
I’m using Axios to make requests between client and server, but I’m having problems with headers. When I make the requests by Postman returns exactly what I want (which in case is a PDF), but when I…
-
0
votes0
answers54
viewsAjax request does not reach the server when the body is too large
In an ajax call I make to the server in a report generation function I am finding a situation. When in the request body I send a small array, with 20 positions everything happens normally, but when…
-
0
votes1
answer88
viewsVue Js and Pokeapi
I am currently studying Vuejs, I am using Ajax to request the API, and integrate the application, but I have read in different places about Axios. Why use Axios and not the "$. Ajax"? It’s more…
-
0
votes1
answer1730
viewsHttp Get Request with Axios
I need help making one get for my restAPI passing parameter (I don’t know if that’s what it’s called!). What I do is call a list in http://localhost:6000/API/Stores axios.get('…
-
0
votes1
answer1105
viewsAccess-Control-Allow-Origin error
Personal I am trying to make a request from one server to another to perform a registration, but I always get returned this error: Failed to load http://domain: Response to preflight request doesn’t…
-
0
votes1
answer82
viewsrequire em Vue.js Component
Good afternoon I can’t use the "Next" require in the Vue Component file. How to resolve this? the file in question is home.js: const axios = require('axios'); Vue.component('home-page', { template:…
-
0
votes0
answers579
viewsHeroku Server does not recognize my CSS and Javascript files
I recently created a project Laravel that is using Vuejs and Axios, and then sent to the Heroku server, but something strange happened, the page is with very strange visualization and I realized…
-
0
votes1
answer722
viewsVue js and Axios does not identify JSON response from API
I have the following code to fetch data from an API via POST, I get the result from JSON (as I can write it to the console. However, I cannot recur the values to fill the Vue element array. // Get…
-
0
votes2
answers13140
viewsReact Native - Pass data to another component
I’m having a question, I’m starting with React On and I’m building an app that contains some components and uses React-navigation. The doubt is as follows: From this component that renders several…
-
0
votes2
answers1198
viewsAJAX Javascript loading message axios
I’m making an AJAX request using the Github API from Axios and wanted to know how I do to, while uploading the information, it give a console.log('carregando'); and create a component written…
-
0
votes1
answer442
viewsAxios or Ajax in Vue.js to perform requests to the server How can I api?
I have a question I couldn’t solve by searching the Internet. I use ajax to perform requests for a long time, now I’m programming in Vue.js, and I use Xios, I wonder if there is any difference…
-
0
votes1
answer392
viewsCatch error number Axios
I’m making a request, which returns me error 401, but I can’t get this number axios.post(config.urlBase + 'adicionar_empresa', formData) .then(res => { if(res.data){…
-
0
votes2
answers4864
viewsRequest React Activate with Aces
I am trying to make a request with Axios for a server, and for that I need to send an access token. The token is correct, but nothing is loading on the network and the request is not working…
-
0
votes2
answers227
viewsConvert a form action call to Xios
good night I’m having trouble converting this code <form action="https://www.personal.com.py/ApiComerciosMaven/webresources/autenticacion/" method="post"> <p> AUTENTICAR USUARIO…
-
0
votes1
answer340
viewsProblem with PUT Laravel
I’m using Laravel 5.6, routes and controller with Resource and in scritpt Post the code works normally, but with PUT it always gives error. Follow the working code of the POST const fileInput =…
-
0
votes1
answer397
viewshow to render a JSON in reactJS
am starting to learn React and want to connect with a server nodejs he’s returning a JSON [{nome:"joão",sobre:"victor"}] then in React: class Page extends React.Component{ constructor(props){…
-
0
votes1
answer239
viewsError Defining Headers-Authorization in Data Return in Axios
I’m trying to set the headers - Authorization after a request via Xios, this request returns the token that is generated on the server, in line 7 of the code below assign the token that is returned…
-
0
votes1
answer47
viewsHow to clear the combo box field with AXIOS?
Context Items are loaded from the selected template, but items are accumulating when a new template is selected. Doubt How to clear combo box data when another model is selected? Because item data…
-
0
votes0
answers134
viewsCORS error on request with Axios
Okay, guys, I’m having a problem making a request with the Riot Games API. Response returns code 200, which is the code of when the request worked, but I cannot handle the object returned by json…
-
0
votes1
answer414
viewsHow popular is Chartjs Chart with Vuejs and Axios?
I’m not getting popular my chart with data vintos of an api, can help me, I don’t know what I’m doing wrong! <template> <div class="py-1 bg-light px-5"> <div class="col-12 my-2">…
-
0
votes1
answer578
viewsAxios GET is not collecting any information
Save it, I’m having trouble collecting data from a weather API. My goal is to collect much of the rain data and for this I am using Vue Axios but I can not collect anything because even after…
-
0
votes1
answer99
viewsHow to get only specific page elements via Xios.get()?
With the Axios.get method from the Axios.js library I can get an entire HTML page, right? Example: axios.get('http://www.umaurl.com') .then(resp => { console.log(resp) }) But now, if I just want…
-
0
votes1
answer134
viewsError creating graph with API data - Axios/Vue
Hello, I’m building a graph that collects meteorological data from the city of Curitiba through a API reset, however nothing is collected and so the graph is not created, I’m using Vue/ Axios for…