allow using custom client config in checkConnection() method - #206
Conversation
|
Just curious: did you get error code 400 on all requests using the default |
|
Associated with #205 |
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 ! Could you take a look and test it for your use case if possible? 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.