Closed mjoyce closed 5 years ago
Requests are being sent with both data and params props, regardless of request method. On a POST (or any method that should send data instead of params) this will result in a 414 response when a large enough payload ends up in the url.
data
params
POST
async request(url, params = {}, method = 'GET') { try { return await axios({ method, url, data: params, params }); } catch (error) { console.error(error); } }
@mjoyce You are absolutely correct. Is this something you want to patch?
Requests are being sent with both
data
andparams
props, regardless of request method. On aPOST
(or any method that should senddata
instead ofparams
) this will result in a 414 response when a large enough payload ends up in the url.