2021年4月8日星期四

Delete request works on Postman and api docs but not with axis

I would like to delete a set of data from my array. However, it works perfectly on Postman and api docs but throws [Error: Request failed with status code 307] when I try it on axios. Below is what my code looks like:

 axios.delete(`http://143.198.67.65:8000/events/42`)      .then(res => {        console.log(res)      })      .catch(err => {        console.log(err)      })    
https://stackoverflow.com/questions/67013750/delete-request-works-on-postman-and-api-docs-but-not-with-axis April 09, 2021 at 09:06AM

没有评论:

发表评论