question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pass request options through to Axios

See original GitHub issue

@haverchuck suggested that I open a feature request here.

I am utilising the rest features of the API module in amplify. I would like to be able to show a loading/progress bar and had hoped to hook this into the onDownloadProgress option of the axios. I had assumed I could simply pass a function through the myInit parameter of the API.get() but the options do not seemed to be passed through to axios.

What is the reason for the options being discarded? Is there an alternative way that I could show a progress bar?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
LosDcommented, Nov 22, 2019

@sammartinez That he has worked around it doesn’t make it less of a horrible bug. We’ve worked around it too… By not using it anymore.

1reaction
exptomcommented, Feb 9, 2022

@sammartinez Just to say I require this again on another project, it would be really helpful to pass all the options through to axios.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to make HTTP requests with Axios - LogRocket Blog
Making an HTTP request is as easy as passing a config object to the Axios function. You can make a POST request using...
Read more >
How to Perform HTTP Requests with Axios – A Complete Guide
The axios. get() method is used to make an HTTP get request. There are two parameters that must be passed to the Axios...
Read more >
Making HTTP requests with Axios - CircleCI
Axios is a promise-based HTTP library that lets developers make requests to either their own or a third-party server to fetch data.
Read more >
Axios Options - Mastering JS
Axios ' `options` parameter contains numerous options for configuring HTTP requests. Here's what you need to know.
Read more >
Request Config | Axios Docs
These are the available config options for making requests. ... It can be convenient to set `baseURL` for an instance of axios to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found