AnsweredAssumed Answered

ESI variable or URL length limit

Question asked by Senthilkumar Rajendiran Employee on Jul 11, 2017
Latest reply on Jul 14, 2017 by Jeff McLean

On of my customer reported that ESI is unable to fetch fragment when the content length is higher than 4096 bytes, anything under 4096 bytes is working fine

 

Sample test URL's with ESI debug enabled:
* https://contextual-stage.media.net/rtbsdebug2.php (Length: 3067) - working fine
* https://contextual-stage.media.net/rtbsdebug.php (Length: 5025) - not working

 

Error seen:

 

[2007]: Line 7. Including fragment "https://opt.media.net/rtbs/rtbsapub?&cid=8CUQ517Y2&requestString=148606457*28%7C300x250~320x50~300x50%7C8CUQ517Y2%7C464942~464942~464942%40148606457*33%7C300x250~320x50~300x50%7C8CUQ517Y2%7C10128949~10128949~10128949%40148606457*56%7C300x250%7C8CUQ517Y2%7Cmnet-7175-300x250-us%40158217312*28%7C300x250%7C8CUQ517Y2%7C464942%40158217312*33%7C300x250%7C8CUQ517Y2%7C10128949%40158217312*56%7C300x250%7C8CUQ517Y2%7Cmnet-7175-300x250-us%40163638421*28%7C320x50~300x50%7C8CUQ517Y2%7C464944~464944%40163638421*33%7C320x50~300x50%7C8CUQ517Y2%7C10128947~10128947%40163638421*43%7C320x50~300x50%7C537144445%7C538655576~538655576%40163638421*51%7C320x50~300x50%7C879182%7C10854072~10854072%40163638421*56%7C320x50%7C8CUQ517Y2%7Cmnet-7175-320x50-us%40163638421*4%7C320x50%7C8CUC52W5Z%7C206351869%40221527575*28%7C300x250~320x50~300x50%7C8CUQ517Y2%7C464942~464942~464942%40221527575*33%7C300x250~320x50~300x50%7C8CUQ517Y2%7C10128949~10128949~10128949%40221527575*56%7C300x250%Warning: [2006]: Line 7. Failed fetching fragment "https://opt.media.net/rtbs/rtbsapub?&cid=8CUQ517Y2&requestString=148606457*28%7C300x250~320x50~300x50%7C8CUQ517Y2%7C464942~464942~464942%40148606457*33%7C300x250~320x50~300x50%7C8CUQ517Y2%7C10128949~10128949~10128949%40148606457*56%7C300x250%7C8CUQ517Y2%7Cmnet-7175-300x250-us%40158217312*28%7C300x250%7C8CUQ517Y2%7C464942%40158217312*33%7C300x250%7C8CUQ517Y2%7C10128949%40158217312*56%7C300x250%7C8CUQ517Y2%7Cmnet-7175-300x250-us%40163638421*28%7C320x50~300x50%7C8CUQ517Y2%7C464944~464944%40163638421*33%7C320x50~300x50%7C8CUQ517Y2%7C10128947~10128947%40163638421*43%7C320x50~300x50%7C537144445%7C538655576~538655576%40163638421*51%7C320x50~300x50%7C879182%7C10854072~10854072%40163638421*56%7C320x50%7C8CUQ517Y2%7Cmnet-7175-320x50-us%40163638421*4%7C320x50%7C8CUC52W5Z%7C206351869%40221527575*28%7C300x250~320x50~300x50%7C8CUQ517Y2%7C464942~464942~464942%40221527575*33%7C300x250~320x50~300x50%7C8CUQ517Y2%7C10128949~10128949~10128949%40221527575*56
%7C30[2000]: Line 10. Processing next branch of conditional structure.
[2023]: Line 9. Function add_cachebusting_header returns value: None.
[2004]: Your code ran successfully.

 

Request to origin is giving 200 response successfully, but failing when Akamai goes forward. The URL is truncated when going forward causing origin to respond with 500.

Outcomes