Limitation in JSON length when using POST in tRestClient
Hello,
I'm currently running v5.6.0 of TOS for Data Integration, and it seems like I'm running into issues passing JSON strings with around 4500-5000 characters via POST in tRESTClient. With smaller strings, it passes the data just fine. However, with the larger strings, I get null on the service side every time. I thought this might have to do with the field's length in the schema, but I tried increasing the value and removing it all together with no joy.
For testing purposes, I have created a test job consisting of a tFixedFlowInput connected tp the tRESTClient. In the tFixedFlowInput component, I'm passing the json string manually with all the quotes delimited. In the tRestClient component, I'm passing a token via query parameter.
Any help would be greatly appreciated. Thanks in advance!
Hi
I am not sure the problem is caused by tRestClient component, I have built a restful webservice with Talend ESB, called the web service and pass a string more than 6500 characters to it, it works fine.
Best regards
Shong
Hi
I just use a tRowGenerator to generate a string with 6500 characters and pass it to the restful webservice, I run the job and I can see the webservice server receive the string and process it, return the correct the result.
I change the content type from XML to json, it also works. but I did't try to send a json string as you did, can you email me your json string for testing?
Best regards
Shong