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
HttpService - Delete method does not include data - even if it's included in data config. #5569
Comments
Please provide a minimum reproduction repository. |
AFAIK, this should be like that: const res = await this.httpService.delete<any>('/url', body, {headers: {}}).toPromise(); |
I think that this is related to an issue with Axios. I am not sure what version of Axios that nest uses, but here is a related issue from the Axios repo, axios/axios#3220. |
@constb thanks for the reply. I tried that format as well. According to the docs for axios body is not accepted as an argument for delete and must be passed as a config value. axios/axios#897 Really appreciate the support from you all. |
Hi, Version 0.21.0 has been released 🎉 please use that and let us know if that solves your issue. Thanks |
Bug Report
Current behavior
When making delete request the data is not added to the request.
Input Code
Please note that config is the second argument for delete request per axios documentation.
axios/axios#897 - this is not the cause of this bug. I think it has something to do with http.service.js makeObservable
Expected behavior
Should append data to the request body.
Workaround
Environment
The text was updated successfully, but these errors were encountered: