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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
repl-bhoopesh-k
Contributor II
Contributor II

411 Length Required

Hi Team,

I encountered a "411 Length Required" error while using the tREST component. Can you please assist me in resolving this issue?

=======================

In Basic Settings:

URL: [requested URL]
Method: POST
=======================

I have tried setting the Content-Type to "application/json" and providing a Content-Length of 52098.

Thanks in advance.

Labels (1)
  • v8.x

4 Replies
henrikalmen
Specialist II
Specialist II

411 is a http response code indicating that the API you are querying expects a Content-Length header. Google "411 Length Required" and see if you can figure out what you need to do in order to query this API in the correct way.

repl-bhoopesh-k
Contributor II
Contributor II
Author

The current approach isn't working. Do we need to pass it differently? Also, I aim to dynamically determine the size instead of hard-coding it.

replbhoopeshk_0-1707923025550.png

 

henrikalmen
Specialist II
Specialist II

I'm not sure about either of those questions. When googling "calculate content-length header" it seems kind of complicated to get it right, and suggestions are that most moderns systems calculate it themselves. I haven't actually used the component you are using, I just realised that the error message in your question seem to be not from the product itself but from the API you are connecting to, so I thought I'd say that. Hopefully somebody else can help you with this.

repl-bhoopesh-k
Contributor II
Contributor II
Author

Hi Henrikalmen,

Thank you for getting back to me. It appears that everything is functioning correctly in Talend 7.3, but there are issues after upgrading to Talend 8. It's possible that this could be due to the upgrade itself or another underlying issue.