Describe the issue
Using the MessageApiClient (tested with v1.0.5 or v1.0.6) through a proxy returned an HTTP 400 Error (from the proxy server). The following is the returned error.
code: 'Invalid',
status: 400,
errors: 'Request Error (invalid_request)\r\n' +
'Your request could not be processed. Request could not be handled\r\n' +
'This could be caused by a misconfiguration, or possibly a malformed request.\r\n'
Using curl with the same payload works as expected, so this is not a problem with the proxy. I think this bug is related to this issue axios/axios#5256. Using the workaround mentioned in the issue work for me (using https-proxy-agent).
It seems that the issue still exist in the latest version of Axios, so updating the Axios version won't solve the issue.
Would be adding https-proxy-agent as a dependency acceptable as a fix for you?
Describe the issue
Using the MessageApiClient (tested with v1.0.5 or v1.0.6) through a proxy returned an HTTP 400 Error (from the proxy server). The following is the returned error.
Using
curlwith the same payload works as expected, so this is not a problem with the proxy. I think this bug is related to this issue axios/axios#5256. Using the workaround mentioned in the issue work for me (usinghttps-proxy-agent).It seems that the issue still exist in the latest version of Axios, so updating the Axios version won't solve the issue.
Would be adding
https-proxy-agentas a dependency acceptable as a fix for you?