Can I do multiple requests in a row?
See original GitHub issueFor instance:
axios.get('http://www.google.com')
.then(function (res) {
})
.get('http://www.apple.com')
.then(function (res) {
})
.catch(function (e) {
})
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (1 by maintainers)
Top Results From Across the Web
How to send multiple requests using axios - Storyblok
Let us start with a small task and sending one request using Axios itself. First, we import axios and define the API/URL we...
Read more >Update Requests - Send one email for multiple rows of ...
Yes, this is possible ! One way to do this is to set up your Update Request to be a time-based workflow (see...
Read more >Can I do multiple SQL requests as a single request
You can use JOINS to join the rows and use a where clause to specify the type you want. It would definitely be...
Read more >Multi-Query Requests | API Connector - Mixed Analytics
To run multiple requests, list your URLs on separate lines. When you run the request, each subsequent response will be appended to the...
Read more >How can I export multiple requests to a spreadsheet?
For this to work, every request that you're exporting needs to be exactly the same. A spreadsheet has fixed columns, so if there...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It would look something like:
Alternatively you can send both requests simultaneously and handle responses at the same time:
I just wanted to tack on that there’s a small syntax error on the above solution, for anyone reading through this issue trying to use axios.all. The above solution is missing a closing parenthesis on the call to
.then(
Happy coding!