Limit on URL length for Rest API Call

Posted by jsniemi79 on 14-Jan-2016 11:35

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?

All Replies

Posted by Anoop Premachandran on 14-Jan-2016 15:26

Try to do POST and sent it in body

Posted by jsniemi79 on 14-Jan-2016 15:28

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>

Posted by Anoop Premachandran on 14-Jan-2016 15:35

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)

Posted by murali on 15-Jan-2016 01:10

 
I quote
 

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."

 
 
Jason, what is the particular REST API? Depending on the type of API, May be you can change to POST and pass some GET variables as POST params.
 

Posted by jsniemi79 on 15-Jan-2016 08:14

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.

This thread is closed