🐛Export answers button not working
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:
- create a new docker hi.events instances in both render and railway.
- create a new event
- 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.
The render and railway versions timed out and do not work.
Logs
see screenshots above too
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?
Thank you!
Just a new note. I have setup s3-private but the export answers button is still not functional.
Just a new note. I have setup s3-private but the export answers button is still not functional.
#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).
Discovered this same issue for self hosted. Anyone come across a fix for this?
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.
I'm also experiencing this issue with the latest version on Docker.
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.
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.
This is now not working at all in the newest version.
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.