Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] tRESTClient PUT command not working

I am unable to use PUT method but GET,POST and DELETE working.
and i tried to use tREST component on same job for PUT Method keep getting error "The method getHeader() is undefined for the type"
Method : PUT not working on Talend 5.5 version 
log :
Checking ports...
Sending job 'json' to server (10.0.192.456:8001)...
File transfer completed.
Deploying job 'json' on server (10.0.192.456:8000)...
Running job 'json'...
Starting job json at 14:16 19/08/2015.
connecting to socket on port 3796
connected
Aug 19, 2015 2:16:46 PM org.apache.cxf.interceptor.LoggingOutInterceptor
INFO: Outbound Message
---------------------------
ID: 1
Address: https://sandbox.orgsync.com/api/v2/accounts/5919820?key=GnclPpv1uGnc3bRslJO6V99zqj5kxK5g7W4vgczsh0r&...
Http-Method: PUT
Content-Type: application/json
Headers: {Content-Type=, Accept=, X-OrgSync-API-Key=}
--------------------------------------
Aug 19, 2015 2:16:46 PM org.apache.cxf.interceptor.LoggingInInterceptor
INFO: Inbound Message
----------------------------
ID: 1
Response-Code: 411
Encoding: ISO-8859-1
Content-Type: text/html
Headers: {connection=, Content-Length=, content-type=, Date=, Server=}
Payload: <html>
<head><title>411 Length Required</title></head>
<body bgcolor="white">
<center><h1>411 Length Required</h1></center>
<hr><center>nginx/0.8.54</center>
</body>
</html>
--------------------------------------
411|<html>
<head><title>411 Length Required</title></head>
<body bgcolor="white">
<center><h1>411 Length Required</h1></center>
<hr><center>nginx/0.8.54</center>
</body>
</html>

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Thanks for the feedback.made changes to input payload then PUT method is working with status 200 OK.

View solution in original post

3 Replies
Anonymous
Not applicable
Author

Hi,
You send a message without payload - but regarding the response its required
Anonymous
Not applicable
Author

Thanks for the feedback.made changes to input payload then PUT method is working with status 200 OK.
hamdi_bourbia
Partner - Contributor
Partner - Contributor

> made changes to input payload then PUT method is working

could you please be more specific ? I have the same HTTP 411 Length Required error ...