java-wns icon indicating copy to clipboard operation
java-wns copied to clipboard

"500 Internal Server Error" when using proxy properties

Open abarysiuk opened this issue 9 years ago • 1 comments

We've been using wns lib for quite a time and everything was fine until we needed proxy server. Simply passing proxy setting to the service constructor causes 500 error to be returned. After some investigation i found that "Transfer-Encoding: chunked" header is the root cause of this error. As far as i understand java-wns uses ApacheConnectorProvider under the hood, which might add this header if proxy properties are not empty.

According Jersey docs only default HttpUrlConnectorProvider restrict the use of some headers, including 'Transfer-Encoding'.

The problem is that there is no way to configure Jersey client and e.g. to use other connection provider.

abarysiuk avatar Aug 03 '16 13:08 abarysiuk

We use 1.4 version

abarysiuk avatar Aug 03 '16 13:08 abarysiuk