Are you getting the same error, if you directly invoke the api via a rest client?
On Wed, Dec 10, 2014 at 7:08 PM, Sriashalya Srivathsan <asha...@wso2.com> wrote: > I'm doing ZOHO-Invoice ESB Connector.When i send request to end points > with the optional parameter *description* to the back end,It returns the > error code *505 Http Version Not Supported. * > > If the description parameter sent without any spaces I am able to get the > correct response. The only issue is send the optional parameters with space > Note that I also tried to sent the encoded value. For that also I got 505 > error. > > > Please find the wire log below. > > [2014-12-10 15:55:44,594] DEBUG - wire >> "POST > /services/zoho_CreateCustomerPayments HTTP/1.1[\r][\n]" > > [2014-12-10 15:55:44,595] DEBUG - wire >> "Host: > sriashalyas-macbook-pro.local:8280[\r][\n]" > > [2014-12-10 15:55:44,595] DEBUG - wire >> "Connection: keep-alive[\r][\n]" > > [2014-12-10 15:55:44,595] DEBUG - wire >> "Content-Length: 130[\r][\n]" > > [2014-12-10 15:55:44,595] DEBUG - wire >> "Cache-Control: no-cache[\r][\n]" > > [2014-12-10 15:55:44,595] DEBUG - wire >> "Origin: > chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm[\r][\n]" > > [2014-12-10 15:55:44,595] DEBUG - wire >> "User-Agent: Mozilla/5.0 > (Macintosh; Intel Mac OS X 10_10_0) AppleWebKit/537.36 (KHTML, like Gecko) > Chrome/39.0.2171.71 Safari/537.36[\r][\n]" > > [2014-12-10 15:55:44,595] DEBUG - wire >> "Content-Type: > application/json[\r][\n]" > > [2014-12-10 15:55:44,595] DEBUG - wire >> "Accept: */*[\r][\n]" > > [2014-12-10 15:55:44,595] DEBUG - wire >> "Accept-Encoding: gzip, > deflate[\r][\n]" > > [2014-12-10 15:55:44,595] DEBUG - wire >> "Accept-Language: > en-US,en;q=0.8,ta;q=0.6[\r][\n]" > > [2014-12-10 15:55:44,595] DEBUG - wire >> "Cookie: > JSESSIONID=E0D69224FA87FEC1A8F0D2AD751EBDE5; > edfb7d8656=9c1fd4635ab50f92ceb89a2f6139a417[\r][\n]" > > [2014-12-10 15:55:44,595] DEBUG - wire >> "[\r][\n]" > > [2014-12-10 15:55:44,596] DEBUG - wire >> "{[\n]" > > [2014-12-10 15:55:44,596] DEBUG - wire >> " > "authtoken":"c1f8014366dd6ffd2691f9671f70de50",[\n]" > > [2014-12-10 15:55:44,596] DEBUG - wire >> " > "customer_id":"571532000000042068",[\n]" > > [2014-12-10 15:55:44,596] DEBUG - wire >> ""date":"2014-12-18",[\n]" > > [2014-12-10 15:55:44,596] DEBUG - wire >> ""amount":"200.00"[\n]" > > [2014-12-10 15:55:44,596] DEBUG - wire >> "}" > > -10 15:55:44,648] INFO - TimeoutHandler This engine will expire all > callbacks after : 120 seconds, irrespective of the timeout action, after > the specified or optional timeout > > [2014-12-10 15:55:45,568] DEBUG - wire << "POST > https://invoice.zoho.com/api/v3/customerpayments?authtoken=c1f8014366dd6ffd2691f9671f70de50&JSONString={ > "customer_id":"571532000000042068","date":"2014-12-18","amount":"200.00","description":"hai > hello"} HTTP/1.1[\r][\n]" > > [2014-12-10 15:55:45,568] DEBUG - wire << "Accept-Language: > en-US,en;q=0.8,ta;q=0.6[\r][\n]" > > [2014-12-10 15:55:45,568] DEBUG - wire << "Cookie: > JSESSIONID=E0D69224FA87FEC1A8F0D2AD751EBDE5; > edfb7d8656=9c1fd4635ab50f92ceb89a2f6139a417[\r][\n]" > > [2014-12-10 15:55:45,568] DEBUG - wire << "Host: invoice.zoho.com[\r][\n]" > > [2014-12-10 15:55:45,569] DEBUG - wire << "Accept-Encoding: gzip, > deflate[\r][\n]" > > [2014-12-10 15:55:45,569] DEBUG - wire << "Origin: > chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm[\r][\n]" > > [2014-12-10 15:55:45,569] DEBUG - wire << "Content-Type: application/json; > charset=UTF-8[\r][\n]" > > [2014-12-10 15:55:45,569] DEBUG - wire << "Accept: */*[\r][\n]" > > [2014-12-10 15:55:45,569] DEBUG - wire << "Cache-Control: no-cache[\r][\n]" > > [2014-12-10 15:55:45,569] DEBUG - wire << "Transfer-Encoding: > chunked[\r][\n]" > > [2014-12-10 15:55:45,569] DEBUG - wire << "Connection: Keep-Alive[\r][\n]" > > [2014-12-10 15:55:45,569] DEBUG - wire << "User-Agent: > Synapse-PT-HttpComponents-NIO[\r][\n]" > > [2014-12-10 15:55:45,569] DEBUG - wire << "[\r][\n]" > > [2014-12-10 15:55:45,570] DEBUG - wire << "82[\r][\n]" > > [2014-12-10 15:55:45,570] DEBUG - wire << "{[\n]" > > [2014-12-10 15:55:45,570] DEBUG - wire << " > "authtoken":"c1f8014366dd6ffd2691f9671f70de50",[\n]" > > [2014-12-10 15:55:45,570] DEBUG - wire << " > "customer_id":"571532000000042068",[\n]" > > [2014-12-10 15:55:45,570] DEBUG - wire << ""date":"2014-12-18",[\n]" > > [2014-12-10 15:55:45,570] DEBUG - wire << ""amount":"200.00"[\n]" > > [2014-12-10 15:55:45,570] DEBUG - wire << "}[\r][\n]" > > [2014-12-10 15:55:45,571] DEBUG - wire << "0[\r][\n]" > > [2014-12-10 15:55:45,571] DEBUG - wire << "[\r][\n]" > > [2014-12-10 15:55:45,824] DEBUG - wire >> "HTTP/1.1 505 HTTP Version Not > Supported[\r][\n]" > > [2014-12-10 15:55:45,824] DEBUG - wire >> "Server: ZGS[\r][\n]" > > [2014-12-10 15:55:45,825] DEBUG - wire >> "Date: Wed, 10 Dec 2014 10:25:45 > GMT[\r][\n]" > > [2014-12-10 15:55:45,825] DEBUG - wire >> "Transfer-Encoding: > chunked[\r][\n]" > > [2014-12-10 15:55:45,825] DEBUG - wire >> "Connection: keep-alive[\r][\n]" > > [2014-12-10 15:55:45,825] DEBUG - wire >> "[\r][\n]" > > [2014-12-10 15:55:45,825] DEBUG - wire >> "0[\r][\n]" > > [2014-12-10 15:55:45,825] DEBUG - wire >> "[\r][\n]" > > [2014-12-10 15:55:45,842] DEBUG - wire << "HTTP/1.1 505 Http Version Not > Supported[\r][\n]" > > [2014-12-10 15:55:45,842] DEBUG - wire << "Content-Type: > application/octet-stream; charset=UTF-8[\r][\n]" > > [2014-12-10 15:55:45,842] DEBUG - wire << "Date: Wed, 10 Dec 2014 10:25:45 > GMT[\r][\n]" > > [2014-12-10 15:55:45,842] DEBUG - wire << "Transfer-Encoding: > chunked[\r][\n]" > > [2014-12-10 15:55:45,842] DEBUG - wire << "Connection: keep-alive[\r][\n]" > > [2014-12-10 15:55:45,842] DEBUG - wire << "[\r][\n]" > > [2014-12-10 15:55:45,843] DEBUG - wire << "5c[\r][\n]" > > [2014-12-10 15:55:45,843] DEBUG - wire << "<axis2ns1:binary > xmlns:axis2ns1="http://ws.apache.org/commons/ns/payload > "></axis2ns1:binary>[\r][\n]" > > [2014-12-10 15:55:45,843] DEBUG - wire << "0[\r][\n]" > > [2014-12-10 15:55:45,843] DEBUG - wire << "[\r][\n]" > > > -- Best Regards, Malaka Silva Senior Tech Lead M: +94 777 219 791 Tel : 94 11 214 5345 Fax :94 11 2145300 Skype : malaka.sampath.silva LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 Blog : http://mrmalakasilva.blogspot.com/ WSO2, Inc. lean . enterprise . middleware http://www.wso2.com/ http://www.wso2.com/about/team/malaka-silva/ <http://wso2.com/about/team/malaka-silva/> Save a tree -Conserve nature & Save the world for your future. Print this email only if it is absolutely necessary.
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev