☝️Small business or a startup? See if you qualify for our special offer.
+

Flexmonster breaks with "CSV header parsing" error when there are more than 10240 characters in headers

Answered
VC asked on February 14, 2025

Hi

We noticed a new error on some of our reports. When trying to run a report Flexmonster throws an error about parsing CSV headers (screenshot attached). 

After further investigation, I was able to narrow it down to the limit of 10,240 characters in the header. The moment that the report goes over this number it starts breaking with that error. 

Also another interesting thing is that it will work fine if trying to access the file locally.

But when accessing via URL the exact same payload will cause this problem. 

Another interesting thing is that throttling networks speed down to 3G, for example, also seems to help bypass this error, but under regular network speed it will throw it as soon as the payload comes back. 

Attachments:
csvparsing.png

6 answers

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster 5 days ago

Hello,

Thank you for reaching out to us.

We could not reproduce the described behavior using the latest version of Flexmonster. Could you please update Flexmonster to the latest version (v. 2.9.97)? Here's our updating guide for reference: https://www.flexmonster.com/doc/updating-to-the-latest-version/.

If updating Flexmonster to the latest version did not resolve the issue, could you please provide us with an example or access to the page where this behavior can be reproduced? It would greatly help us to continue the investigation.

Looking forward to hearing from you.

Kind regards,
Nadia

Public
VC 3 days ago

Hi, 

We have the latest 2.9.97 version but we're still seeing the issue.

Attached is the file that would cause this problem. Note that IF we were to just remove one character from the header list it would work. So, for example, that last header, when changed from "Plaintif" to "Plainti" it would fix the problem. The interesting thing is that the headers as they are in the file attached have the total length of 10240 characters , which is exactly 10KB. 

Also - please keep in mind that we don't get this problem if running directly from a file OR if we are on a slow network (like throttled via chrome). 

But if on regular speed network and IF download via URL this issue pops up. 

Public
VC 3 days ago

trying to upload the file again, as it failed uploading...

Attachments:
testdoc.zip

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster 2 days ago

Hello,

Thank you for the response.

Our team could not reproduce the described behavior. We used the provided data and tested it in Google Chrome and Firefox on the Windows OS, with different types of network throttling and without it. We also tested with and without gzip compression.

We believe that the issue may be related to specific server configurations affecting file delivery. To investigate further, we would need access to a page where this file can be loaded using your server so we can debug the issue directly. This would significantly help us.

Looking forward to hearing from you.

Kind regards,
Nadia

Public
VC 2 days ago

Hi, 

We can provide a dedicated user/pass and the link to the report. Where/how should I send this info? I m assuming this ticket is publicly available so I'd rather send to a dedicated email. 

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster 23 hours ago

Hi,

Thank you for the response.

Your Customer Service Manager will contact you via email. Please check your email.

Looking forward to the input from your side.

Kind regards,
Nadia

Please login or Register to Submit Answer