You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is very strange. I'm sending a PUT request to update a record using Axios from a React-based front end. I implemented my own abstraction on top of Axios for an HTTP client so I can centralize auth, header config, and whatnot. When I debug the request end-to-end, I can see that the data that gets passed to the the Axois put method contains a name property with a valid value, but when I inspect what was sent over the wire in devtools, the value is null.
I'm pretty sure the problem isnt here, but this is the put method for my http client built on Axios:
Again, when I put a breakpoint in this method to inspect the value of data, I can see that it has a name property with valid value, but that values is set to null between this operation and the request going out over the wire.
Any thoughts as to why Axios would be stripping this value from the request? I am not using any interceptors or anything that could strip this value. I havent tried to go so far as to debug Axois itself, but that may be the next step.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
This is very strange. I'm sending a PUT request to update a record using Axios from a React-based front end. I implemented my own abstraction on top of Axios for an HTTP client so I can centralize auth, header config, and whatnot. When I debug the request end-to-end, I can see that the data that gets passed to the the Axois put method contains a
nameproperty with a valid value, but when I inspect what was sent over the wire in devtools, the value isnull.I'm pretty sure the problem isnt here, but this is the put method for my http client built on Axios:
Again, when I put a breakpoint in this method to inspect the value of
data, I can see that it has anameproperty with valid value, but that values is set to null between this operation and the request going out over the wire.Any thoughts as to why Axios would be stripping this value from the request? I am not using any interceptors or anything that could strip this value. I havent tried to go so far as to debug Axois itself, but that may be the next step.
Beta Was this translation helpful? Give feedback.
All reactions