Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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.
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.
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.
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.
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.