Data Explorer cannot export to CSV

AI-generated summary

Users reported a bug in the Data Explorer plugin where exporting results to CSV results in an HTTP 500 error, even with a single row. imrehg initially raised the issue, noting it was unrelated to a previously reported CSV export problem. jomaxro suggested a fix had been implemented, but pfaffman clarified that the fix hadn’t yet been deployed for hosted Discourse instances. imrehg confirmed the issue persisted despite the fix being applied to other reports. techAPJ acknowledged the bug, confirmed it was reproducible, and provided a fix in a GitHub commit 07cb0005, stating it would be deployed soon.

We are using Discourse-hosted Discourse, and found that the Data Explorer plugin errors out when trying to export the results in CSV format.

We do a query, if we select “download results” in JSON it works, if in CSV, then got a HTTP 500 result…

Any idea what might be going on? Is it a known issue?

1 Like

How many rows / results are you attempting to export as CSV?

Even with a single row we get an error (e.g. running a query with SELECT .... LIMIT 1).

I wonder if the othet CSV issue reported, CSV export of reports fails is related.

I also believe that they are related.
Can you check the /logs page to see if you have the same error?

Checked, and no new log shows up in the /logs when trying to do the Data Exporter. Though have tried to do the “reports” export as mentioned in the other thread, and it fails the same way (no logs then either). So definitely feels related (and that thread is probably duplicate of this one, as this was filed earlier).

Looks like @techAPJ resolved this. Try updating to latest and retest?

1 Like

Has it been pushed yet?

1 Like

It has now. Apologies, @imrehg, I glossed over that we hosted you.

3 Likes

Proof that you’re trying to help everyone, not just customers!

3 Likes

Hey, tried the other linked issue, that one was fixed (now it’s .csv.gz that’s downloaded?). My original report, of the Data Explorer does not export to CSV is still erroring out the same way, so this issue is still open.

2 Likes

I can repro this issue here on meta. Added on my list to fix. :memo:

4 Likes

Fixed via:

https://github.com/discourse/discourse-data-explorer/commit/07cb0005b02dbddb227d1790f61bd77e0ad52d65

Thanks for reporting this issue @imrehg :+1:

The fix will be deployed on your instance soon.

4 Likes

This topic was automatically closed after 24 hours. New replies are no longer allowed.