Closed stevez closed 3 months ago
Just curious: did you get error code 400 on all requests using the default proxy
configuration that axios comes with?
Associated with https://github.com/reportportal/client-javascript/pull/205
Just curious: did you get error code 400 on all requests using the default
proxy
configuration that axios comes with?
Yes, I tried to use the playwright example to publish to the demo site, I saw all the requests have issues; but in my local server, I only see the first one has the 400 error
Hi @stevez !
I would like to include the use of HttpsProxyAgent
in this package to allow users to specify proxy settings in the same way as for the http proxies that axios supports. This would also be useful for our agents that already use this client and provide it with a configuration that can be deserialized from a string.
Could you take a look and test it for your use case if possible? https://github.com/reportportal/client-javascript/pull/205
Thank you in advance!
Yes I will look at today, sorry for the delay response
Check my comment in you pr
I found the client will throw error of "400 BAD request" when running behind the proxy. based on this article: https://stackoverflow.com/questions/60578209/axios-proxy-configuration-causing-bad-request In order to make the client working behind the proxy, I found I need to add some custom parameters in the RPClient,
I found the solution will work in the startLaunch() method, but not checkConnection(), then I need to realize we need to pass the restClientConfig object to checkConnection() as well, after this fix, then we can use the client work under the corporate proxy using the above code snippet.