$axios.$delete body payload is missing
See original GitHub issue@nuxtjs/axios
version: 5.12.2
Issue:
When trying to call API on delete
method, the request body is missing.
Example problematic code:
$axios.$delete('/store/products', {
data: {
[
{
sku: '1234',
},
],
},
}
More information:
@nuxtjs/axios
5.12.1 don’t have this problem
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:12 (1 by maintainers)
Top Results From Across the Web
Axios - DELETE Request With Request Body and Headers?
Show activity on this post. For Axios DELETE Request, you need to include request payload and headers like this under one JSON object:...
Read more >HTTP DELETE Requests with Body in Axios - Mastering JS
To send a request body with an Axios DELETE request, you should set the data option.
Read more >Axios Delete request with body and headers? - SyntaxFix
I've been searching in the inter webs and only found that the DELETE method requires a "param" and accepts no "data". axios. delete(URL,...
Read more >Axios - HTTP DELETE Request Examples - Jason Watmore's
Below is a quick set of examples to show how to send HTTP DELETE requests to an API using the axios HTTP client...
Read more >axios delete request body Code Example - Code Grepper
“axios delete request body” Code Answer's · axios delete request payload · axios delete request · axios delete request · Browse Javascript Answers...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
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
There is a PR (https://github.com/axios/axios/pull/3282) ready. Question is when 0.20.1 will be released.
A solution we found for now is using
axios.request({url, data, method: 'delete'});
Hi,
Axios version 0.21.0 has been released 🎉 please use that and let us know if that solves your issue.
Thanks