Error: 414 Request-URI Too Large

  • deslab
    Asked on December 15, 2020 at 11:16 AM

    Hello,

    if i open in browser an url with 8945 characters, your nginx server returns this error message: 414 Request-URI Too Large

    What's the limit of length? Is there any possibility to extend this length within the limits of the protocol?

    Thanks, regards.


    Jotform Thread 2767870 Screenshot
  • Jessica JotForm Support
    Replied on December 15, 2020 at 12:51 PM

    Hi deslab, thank you for reaching us.

    According to the online source, the default limit is 8190 characters. However, I would need to check with our team for the precise number. Could you also kindly let us know why would you like to extend the length?

    We await your response.

  • deslab
    Replied on December 16, 2020 at 4:55 AM

    Hi Jessica,

    an external our application pass to jotform modules by querystring a lot of fields and for each of them the value can have a lot of characters.

    To solve this problem, if it is possibile, we can to pass data in another mode (but i don't believe that there is this possibility). 

    If you extent the limit of url characters, it securly reduces the probably that the error limit occurs (even if it doesn't solve to 100% the problem).


  • Jed_C
    Replied on December 16, 2020 at 5:08 AM

    Browsers put limit to the characters to prevent denial of service attacks. This means that this limitation is on the browsers end from what I know and I'm not sure if we can bypass that.

  • deslab
    Replied on December 16, 2020 at 10:20 AM

    So it depends only by browser that is used?

    I've used Chrome and I believe that its limit is over 8190 character, don't you think?

  • VincentJay
    Replied on December 16, 2020 at 11:09 AM

    Yes, it depends on the internet browser. Here's the limit for internet explorer: https://support.microsoft.com/en-ph/help/208427/maximum-url-length-is-2-083-characters-in-internet-explorer

    I hope this information helps. Let us know if you need further assistance. Thank you!


  • deslab
    Replied on December 23, 2020 at 2:53 AM

    Hello,

    I've found this answer on stackoverflow very interesting (see below https://stackoverflow.com/questions/812925/what-is-the-maximum-possible-length-of-a-query-string)

    It seems like url length accepted by browser (Google Chrome) is more than 8945 characters.

    So, why my in my case your nginx server returns this error message: 414 Request-URI Too Large?

    Thanks.

  • Sam_G
    Replied on December 23, 2020 at 3:47 AM

    Hello Deslab,

    Upon further research, Chromes max is around 2000 characters.

    Chrome limits URLs to a maximum length of 2MB for practical reasons and to avoid causing denial-of-service problems in inter-process communication. On most platforms, Chrome's Omnibox limits URL display to 32kB ( kMaxURLDisplayChars ) although a 1kB limit is used on VR platforms.

    You may check this at https://www.quora.com/What-is-the-maximum-length-of-a-URL-in-different-browsers.

    I hope this helps.


  • deslab
    Replied on December 23, 2020 at 10:27 AM

    Sorry,

    but it does't seems like you say.

    If I try access whith Chrome (and Windows 10) to https://eu.jotform.com/92972789380374?wm=P&idvr=29&........ (where dots rappresents abount 4700 characters), the module is loaded correctly. Why? The characters present in the address bar (URL) are more than 2000 and, like you are sayed in the precedent post, it rappresent the limit.

    Instead, if I try with about 8945 characters, your nginx server (not chrome) returns this error message: 414 Request-URI Too Large

    Probably the browsers have a URL limit but I think that, in this case, it doesn't. So, is it possibile to knows what is the limit of the url accepted by your nginx server? Is it possibile to extent, for example to 65536?

    Thanks.

  • KrisLei Jotform Support
    Replied on December 23, 2020 at 10:57 AM

    Hello,

    So, is it possibile to knows what is the limit of the url accepted by your nginx server? Is it possibile to extent, for example to 65536?

    I'm not quite sure of that, but usually, if the error comes from our server it shows "500 Internal Server error..". However, let me verify this with our developers, can you provide us first the URL you are trying to access so that we can try if we can replicate the error on our end?

    Thank you. Looking forward to your response.

  • deslab
    Replied on December 24, 2020 at 3:24 AM

    This URL raises the error.

    This URL doesn't raise the error.

    Thanks, regards.

  • Vanessa_T
    Replied on December 24, 2020 at 3:54 AM

    This URL has 9,006 characters.

    While this URL has 4,788 characters.

    On the other hand, if you wish to make sure that your page works in any type of browser, I wouldn't recommend such a long URL.

    If you can instead provide more information on your workflow, we can try to find another alternative.

  • deslab
    Replied on December 28, 2020 at 3:46 AM

    I'm sorry, but the latest post responds to request of KrisLei when she writes "can you provide us first the URL you are trying to access so that we can try if we can replicate the error on our end"

    You say that the limit is 2000 characters and it depends only for browser used. But the form is load correctly even for about 5000 characters, so it doesn't depends only for browser used.

    So, I would like to know if there is a particular limit on your server regardless the browser used.

    Thanks.

  • Richie JotForm Support
    Replied on December 28, 2020 at 4:21 AM

    I have forwarded your question to our developers for further information.

    Once we have updates, you will be notified at this support ticket.