axios Questions

5

Solved

We use axios for http requests such as get, post, etc. We use express for the same purpose also. However according to what I read, they are for different purposes. Please explain how. PS: If you e...
Overnight asked 7/6, 2020 at 10:37

4

Solved

I'm sending a request to a node.js server from a reactjs client using axios as shown below. import axios from 'axios'; const apiClient = axios.create({ withCredentials: true, baseURL: 'http://...
Leeanneleeboard asked 2/5, 2020 at 5:55

2

I have a React JS application where I send a GET request with axios. In the browser, in the Response Headers section, when I send the request I get Content-Disposition: attachment;filename="im...
Fleecy asked 13/9, 2021 at 10:7

11

I've tried axios.get(url, {headers:{},data:{}}) But it doesn't work with this.
Surrebuttal asked 1/5, 2020 at 21:33

3

Solved

I'm using Axios ("axios": "^0.19.0") to do a GET request to my backend which works as I already tested it by sending the same token through Postman macOS app, and returns the correct user object. ...
Incorporated asked 14/7, 2019 at 3:10

20

Solved

Edit A little late, but I remember that I ended up solving this issue by setting credentials: true in my cors config on my backend. By complete accident, I noticed that if I set credentials: false ...
Cristoforo asked 12/7, 2019 at 14:48

3

Solved

I have a Vuetify data table with expandable rows. Each row correlates with a customer's order which consists of samples they want to be tested. Currently, I'm retrieving all the orders with all th...
Servetnick asked 2/4, 2020 at 14:24

20

Solved

This is my first time using axios and I have encountered an error. axios.get( `http://someurl.com/page1?param1=1&param2=${param2_id}` ) .then(function(response) { alert(); }) .catch(fu...
Unequal asked 31/8, 2017 at 11:16

4

I'm building a chrome extension which will need to make an API call when certain messages are received from the content script. I'm having difficulty making the HTTP request and I believe that my w...

2

I am currently trying to create a middleware that will user's data by fetching an external endpoint with Axios. Axios too, does not work with the middleware. Here is my error when using node-fetch:...
Dena asked 4/2, 2022 at 20:33

8

Solved

I have an API endpoint that lets the client post their csv to our server then post it to someone else server. I have done our server part which save uploaded file to our server, but I can't get the...
Pamulapan asked 29/10, 2018 at 4:48

2

Solved

I'm downloading a zip file with axios. For further processing, I need to get the "raw" data that has been downloaded. As far as I can see, in Javascript there are two types for this: Blobs and Arra...
Linnlinnaeus asked 28/2, 2020 at 14:46

2

Solved

I have the following handler for my AWS Lambda function. I don't want to or need to wait for Promise.all resolve or reject. Because, I am not interested about its result. My purpose is to just send...
Gonta asked 29/3, 2021 at 11:6

5

Solved

I am building a back-office app that requires users to sign in. I have 2 external APIs: API A : to manage user accounts and sessions API B : to perform CRUD actions on another database (unrelated ...
Palladian asked 22/10, 2021 at 14:12

10

Solved

Using raw HTML when I post a file to a flask server using the following I can access files from the flask request global: <form id="uploadForm" action='upload_file' role="form" method="post" en...
Wexford asked 25/3, 2017 at 7:45

19

Solved

How to add indexes to array in query string? I tried send data like this: axios.get('/myController/myAction', { params: { storeIds: [1,2,3] }) And I got this url: http://localhost/api/myContro...
Coexist asked 20/4, 2018 at 14:49

13

Solved

I'm building a really easy api and react-native application. The server works well (tested with PostMan) but the application doesn't call the server. It blocks when axios has to send the post reque...
Keystone asked 12/2, 2017 at 15:16

3

I am trying to use axios in React chrome extension module, but I am facing this issue. Uncaught (in promise) Error: Error: Adapter 'http' is not available in the build // background.ts import axio...

17

Solved

I have created an API endpoint using the Django python framework that I host externally. I can access my endpoint from a browser (mydomain.com/endpoint/) and verify that there is no error. The same...
Melton asked 19/3, 2018 at 19:18

2

Solved

I am new in Django and react. I already faced this error at last week and That times its was request URL error. yesterday I changed backend design and now its error happens again. Here is my url=>...
Tortfeasor asked 2/7, 2019 at 4:0

6

Solved

I'm working on a project that has the frontend built in react and backend in spring and I can't seem to connect the two of them by using axios. Keep in mind that the backend is working properly (al...
Centrifugal asked 19/11, 2022 at 18:15

2

Solved

I'm moving from Jquery AJAX to Axios since I'm using ReactJS so I think it's cleaner, I am having some troubles posting a simple request to the server, the post method goes through my view but when...
Melodeemelodeon asked 22/3, 2018 at 13:37

11

I am using Laravel Sanctum with Vuejs SPA. Both reside on same top level domain Laravel backend : app.demo.localhost Vue SPA : app-spa.demo.localhost Login and logout (endpoints) are working cor...
Warnke asked 25/4, 2020 at 5:53

3

Solved

I'm using axios to send request to diro to create an user with endpoint /user/create. However, I keep getting an error like this: Error response: { Error: certificate has expired at TLSSocket.on...
Andromache asked 6/11, 2019 at 6:33

6

Solved

I got error of Catch clause variable type annotation must be 'any' or 'unknown' if specified.ts(1196) with below code import axios, { AxiosError } from "axios"; try { } catch(error: Ax...
Headmistress asked 21/9, 2021 at 6:46

© 2022 - 2025 — McMap. All rights reserved.