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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

REST interface ...is exceeding the 65535 bytes limit

Hello,
I have design an REST interface for an sql db. After the 22 URI for the rest interface, I receive the following error:
 The code of method tRESTRequest_1_LoopProcess(Map<String,Object>) is exceeding the 65535 bytes limit.
I think I need to split the rest interface, but I cant set second rest interface in job. I can create a second job with an rest interface over an other ports, but this solution is not so nice.
Have anybody an other solution?
Greets Benjamin

Labels (2)
13 Replies
Anonymous
Not applicable
Author

but it is a job I can only create a jar file. I have split the rest interfaces into 2, build two jars and put it into karaf. It says endpoint already running.
Anonymous
Not applicable
Author

OK, so if your single service currently has an endpoint like below...
http://myservices:8090/services/mydbservices
...and your HTTP request URIs are something like....
/select
/insert
/update
....you could try something like this. Create 22 web services each with an endpoint that includes the HTTP request URI. Like below...
http://myservices:8090/services/mydbservices/select
http://myservices:8090/services/mydbservices/insert
http://myservices:8090/services/mydbservices/update
Yes, this will mean more services, but it is arguably better to decouple your functionality. 22 different requests in a single service is a bit much to be honest. This way you can keep you endpoints consistent and won't have an issue with size.
Anonymous
Not applicable
Author

So I create 22 tRestRequest with: http://localhost:8088/REST/Operation1, http://localhost:8088/REST/Operation2 .....
http://localhost:8088/REST/Operation22?
Anonymous
Not applicable
Author

Yes. While it appears to be extra work, it actually makes life a lot easier.