Unable to add transformRequest to an endpoint #1616
Replies: 5 comments 1 reply
-
Axios was recently updated, does that resolve this? |
Beta Was this translation helpful? Give feedback.
-
I have what seams to be the same issue with the latest version possible. auth-next: 5.0.0-1648802546.c9880dc You can see that in the page, the |
Beta Was this translation helpful? Give feedback.
-
I just saw that in the file |
Beta Was this translation helpful? Give feedback.
-
I got the same problem when trying to convert body data for 'application/x-www-form-urlencoded' Versions: |
Beta Was this translation helpful? Give feedback.
-
would be happy if anyone got any idea for a workaround on this |
Beta Was this translation helpful? Give feedback.
-
Version
module: 5.0.0-1618898588.9655d0e
nuxt: 2.15.4
Nuxt configuration
mode:
Nuxt configuration
Reproduction
https://codesandbox.io/s/pedantic-waterfall-1ze8d?file=/nuxt.config.js
What is expected?
I should be able to transform the request before it's sent.
According to the doc:
I'm trying to tranform the json data into a www-form-urlencoded data (stringified).
Poke #977
What is actually happening?
An error pops before the request is made. Specifying
fn is not a function
.Steps to reproduce
Add a transformRequest Array in the endpoint definition. Or go to the reproduction link.
Additional information
Checklist
Beta Was this translation helpful? Give feedback.
All reactions