Is there a limit on the URL length for a call coming in to Rollbase via Rest? We're trying to create a record that includes quite a bit of rich text formatting and are seeing a 404 URL is too long.
If so, is there a setting we can update to get around this?
Try to do POST and sent it in body
This is what our integrator is seeing on their end.
[16/01/14@17:41:39.272+0100] P-021008 T-002240 1 AS -- (Procedure: 'tools/sendMailToRollbase.p' Line:330) REsult from Rollbase:
[16/01/14@17:41:39.272+0100] P-021008 T-002240 1 AS -- (Procedure: 'tools/sendMailToRollbase.p' Line:330) <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
[16/01/14@17:41:39.272+0100] P-021008 T-002240 1 AS -- (Procedure: 'tools/sendMailToRollbase.p' Line:330) <html><head>
[16/01/14@17:41:39.272+0100] P-021008 T-002240 1 AS -- (Procedure: 'tools/sendMailToRollbase.p' Line:330) <title>414 Request-URI Too Large</title>
[16/01/14@17:41:39.272+0100] P-021008 T-002240 1 AS -- (Procedure: 'tools/sendMailToRollbase.p' Line:330) </head><body>
[16/01/14@17:41:39.272+0100] P-021008 T-002240 1 AS -- (Procedure: 'tools/sendMailToRollbase.p' Line:330) <h1>Request-URI Too Large</h1>
[16/01/14@17:41:39.272+0100] P-021008 T-002240 1 AS -- (Procedure: 'tools/sendMailToRollbase.p' Line:330) <p>The requested URL's length exceeds the capacity
[16/01/14@17:41:39.272+0100] P-021008 T-002240 1 AS -- (Procedure: 'tools/sendMailToRollbase.p' Line:330) limit for this server.<br />
[16/01/14@17:41:39.272+0100] P-021008 T-002240 1 AS -- (Procedure: 'tools/sendMailToRollbase.p' Line:330) </p>
[16/01/14@17:41:39.272+0100] P-021008 T-002240 1 AS -- (Procedure: 'tools/sendMailToRollbase.p' Line:330) <hr>
[16/01/14@17:41:39.272+0100] P-021008 T-002240 1 AS -- (Procedure: 'tools/sendMailToRollbase.p' Line:330) <address>Apache/2.2.15 (Red Hat) Server at crm.vyco.com Port 80</address>
[16/01/14@17:41:39.272+0100] P-021008 T-002240 1 AS -- (Procedure: 'tools/sendMailToRollbase.p' Line:330) </body></html>
This error is thrown by Tomcat/PAS and not Rollbase.
You can increase the max URI size in Tomcat/PAS
However I strongly suggest you use POST method and send data in body (application/x-www-form-urlencoded)
Under Apache, the limit is a configurable value, LimitRequestLine
.
Change this value to something larger than its default of 8190 if you want to support a longer request URI.
However, note that if you're actually running into this limit, you are probably abusing GET
to
begin with. You should use POST
to
transmit this sort of data -- especially since you even concede that you're using it to update values. If you check the link above, you'll notice that Apache even says "Under normal conditions, the value should not be changed from the default."
I'm not sure the exact call they are using. They are creating a record on a single object. It is just creating a copy of an email. The email body contains a lot of formatting in the html version which is where it fails. I'll pass along the information to our integration partner and see if they can tweak their code to use the POST method.
Thanks for all your help.