Hi.Events icon indicating copy to clipboard operation
Hi.Events copied to clipboard

🐛Export answers button not working

Open dummyies opened this issue 1 year ago • 10 comments

Describe the bug The export answers button in question page is not working in self hosted instances on cloud.

To Reproduce Steps to reproduce the behavior:

  1. create a new docker hi.events instances in both render and railway.
  2. create a new event
  3. try on export answers button in questions page

Expected behavior There should be a popup on exporting in progress, followed by an answers csv file. In the hosted versions, there is no pop up at all and the csv file is not exported and the network console says timed out. The funny thing is that it works on orders and attendees csv export but just not on answers csv.

Screenshots hi.events hosted version works. Image Image

The render and railway versions timed out and do not work. Image Image

Logs see screenshots above too Image

Desktop (please complete the following information):

  • Browser (tried on firefox and chrome both on windows and android)

Hi.Events Version and platform Latest docker version - on railway and render (daveearley/hi.events-all-in-one:latest)

Thanks for this great project. I really like it!

Not sure whether this is the problem. I don't have s3-private setup. Is there an option to export locally, similar to orders and attendees xls export?

Image

Thank you!

dummyies avatar Jun 07 '25 16:06 dummyies

Just a new note. I have setup s3-private but the export answers button is still not functional.

dummyies avatar Jun 10 '25 01:06 dummyies

Just a new note. I have setup s3-private but the export answers button is still not functional.

dummyies avatar Jun 10 '25 01:06 dummyies

#621 fixes Q&A exports for users using AWS S3.

For S3 users, please try the temporary fix mentioned [here](https://github.com/HiEventsDev/Hi.Events/issues/616#issuecomment-2971003074).

creativeindustriesgroup avatar Jun 13 '25 17:06 creativeindustriesgroup

Discovered this same issue for self hosted. Anyone come across a fix for this?

Brantlab avatar Aug 14 '25 00:08 Brantlab

Hey @Brantlab are you using the latest version of Hi.Events?

The latest public docker image may not be the latest version of Hi.Events.

creativeindustriesgroup avatar Aug 14 '25 11:08 creativeindustriesgroup

I'm also experiencing this issue with the latest version on Docker.

hperrin avatar Jul 24 '26 18:07 hperrin

I've gotten the export working by providing S3 information, and it says the export is complete now, and that it is downloading the file, but nothing happens.

Looking in the network logs, I can see the correct file URL is returned, and when I manually go to that location, it does indeed download the completed file.

hperrin avatar Jul 24 '26 20:07 hperrin

The reason the download wasn't launching is that Brave was preventing the popup. If you can tie that popup to a user-generated click event handler, the browser should allow it without the user specifically needing to approve it. I believe this even works across Promise resolution, so you could await inside the event handler of the original click for the download URL to be ready. Another solution might be to inject a button in the page to download the spreadsheet that is visible to the user, that way the user is performing the click, and the browser won't prevent it.

hperrin avatar Jul 25 '26 00:07 hperrin

This is now not working at all in the newest version.

hperrin avatar Sep 11 '26 23:09 hperrin

Status: These changes are local and uncommitted; they have not been merged or released.

Answer exports now use the configured private storage disk instead of assuming S3. For local storage, completed files are downloaded through an authenticated, event-scoped request; S3-compatible temporary URLs remain supported. The interface also handles polling/startup errors and offers a retry without relying on a popup.

A Chromium full-stack run against an isolated Laravel/PostgreSQL stack with local private storage and a database queue worker downloaded an XLSX containing synthetic order and attendee answers; a second download matched the first and no popup opened. The worker completed the actual export job. A separate injected start failure displayed the error. Targeted backend and download-authorization regressions were also exercised. This was not a live S3, Render, or Railway deployment. Installations with separate web and worker hosts still need shared private storage.

No screenshot is attached here; supporting evidence is being prepared separately for manual upload.

chmunyas avatar Oct 31 '26 10:10 chmunyas