Questions tagged as 'axios'

1
answer

Authentication jwt with vuejs

I'm a bit confused with authentication using jwt token, I have an application on vuejs + vue-router, I'm not wanting to use vuex until I learn how to do it without it (I do not like to use what I do not understand). So I have my API in NodeJS wh...
asked by 14.03.2018 / 18:39
1
answer

How to make multiple requests in parallel in axios?

I have two urls to make the request: link and link I would like to make requests for both in parallel, currently I have done separately as in the code below: axios .get('https://api.tuuris/cities') .then(response => { this....
asked by 01.08.2018 / 18:50
1
answer

Making a Get using Axios (Vue.js)

I'm trying to pull a list of names from a json ( link ) using the axes however I do not understand why I get the error TypeError: Can not set property 'pokemons' of undefined Since my console.log is returning the list correctly, it follo...
asked by 09.08.2017 / 03:54
1
answer

Promise not returning value

My request is returning this: data: Promise Opening Developer Tools from Chrome I see this: data: Promise __proto__:Promise [[PromiseStatus]]:"resolved" [[PromiseValue]]:"24/01/2016" Using the axios, how can you print this value? L...
asked by 06.10.2017 / 18:48
1
answer

Sending application files to the API

I have a React-native APP and an API with Laravel The two are communicating correctly, sending APP data to the API and otherwise incorrectly At the moment to send and receive requests in the APP I use axios But now I would like to...
asked by 22.12.2017 / 18:27
1
answer

VueJS - Popular select with API data

I'm having trouble popping a select with the data I got as a return from an API. I'm using Vue. Following codes: My HTML looks like this: <select> <option value="" disabled selected>Escolha uma conta</option> <op...
asked by 07.05.2018 / 16:07
1
answer

How popular is ChartJS Chart with VueJs and Axios?

I'm not getting my graph with popular data from an api, can you help me, I do not know what I'm doing wrong! <template> <div class="py-1 bg-light px-5"> <div class="col-12 my-2"> <div class=...
asked by 23.10.2018 / 15:10
1
answer

Pass parameters (including an image) to PHP with Axios using formData

I created a React component to be my custom input button: getFormData(){ var formData = new FormData(); var imagefile = document.querySelector('#btn_file_logo'); formData.append("image", imagefile.files[0]); return formData; }...
asked by 06.06.2018 / 16:01
0
answers

Error executing API requests using Axios and Vue-resource

I was consuming data from an API using XHR and it was working very well, but there were some changes in the design and there was a need to use Vue. I tried to make the same requests using Axios and soon after the Vue Resource but in both I was n...
asked by 27.12.2017 / 19:58
0
answers

Doubt how to recover data using react-native axes

Talk to people, To start still in react-native and I'm doing a test connecting to a webservice: consultar(){ var ret = ''; ret = axios.get('http://192.168.0.142:8080/rest/clientes?cpf=05092845406').then( response => { console.lo...
asked by 19.12.2017 / 20:49