Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Axios cache just stopped working with today's update - How to solve? #95

Closed
altcointrading opened this issue Oct 5, 2022 · 2 comments · Fixed by #96
Closed

Axios cache just stopped working with today's update - How to solve? #95

altcointrading opened this issue Oct 5, 2022 · 2 comments · Fixed by #96

Comments

@altcointrading
Copy link

I am using Axios extensions linked from unpkg CDN in a vanilla JS snippet. The snippet was working for nearly a month. With no changes in template or in the script itself, suddently Axios extensions stopped working so I think it is related to the updates.

Snippet

function getTickerAsync() {
const e = axios.create({
baseURL: "https://data.example.net",
adapter: window["axios-extensions"].cacheAdapterEnhancer(axios.defaults.adapter, {
    enabledByDefault: !0
})
});
e.get("/data.json").then(function(e) {
  document.getElementById.........
})
}

Error

  1. First error is saying that my Axios call only has a get method, but the .del problem refers to a line on the inside of the Axios extension, there is no .del method used in my snippet. So, is there a workaround to make this work again?
  2. Second says that cacheAdapterEnhancer is not a function. Again, this worked for nearly a month.

Screenshot 2022-10-05 at 6 02 09 PM

@govarthananve
Copy link

Please downgrade version 3.1.5 to 3.1.4 It will work

@kuitos
Copy link
Owner

kuitos commented Oct 7, 2022

fixed and released v3.1.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants