-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
submissions.csv.zip can be downloaded, but submissions.csv cannot #701
Comments
@matthew-white both of the forum reports mention encrypted projects/submissions, this may be a factor. For reference, I haven't had problems downloading an unencrypted I have on one occasion seen the "something went wrong" error in the UI as at https://forum.getodk.org/t/unable-to-download-submissions-from-two-forms-of-encrypted-project/39655, although my download started ok. |
I strongly suspect so, all the more so given that you weren't able to reproduce with an unencrypted submissions.csv.
Yes, we replaced the dropdown in that screenshot with the current modal as part of v1.4, when we added more download options. (Before v1.4, you would only see a modal if you had a passphrase to enter; now, you always see a modal.)
Very interesting, that's definitely unexpected. If you see that again, could you see what's logged in the console? That modal has an unusual setup: to start the download, we submit a form from an iframe. We use a form rather than a simple download link in order to pass the passphrase via the request body rather than as a query parameter. We use an iframe so that the form submission doesn't change the main page. Once the form is submitted, we check for a Problem response in the iframe on a regular basis. We display the "something went wrong" error if there's a response in the iframe that isn't JSON (for example, an nginx error). We also log the error to the console. |
Another data point. @yanokwa encountered this issue while:
(The passphrase for the repro is A couple of things that I'm noticing:
|
On the forum, we've heard of two similar cases in which the submissions.csv.zip can be downloaded, but the submissions.csv cannot. Both cases involved an encrypted project, a form with hundreds of fields, and <1,000 submissions. I'd be interested to see whether we could reproduce it ourselves. In both cases, the users were able to download the submissions.csv if they filtered the submissions down to a smaller number.
One part of this that I don't understand is that the users reported that at least in some cases, they saw no error message at all:
I'm not surprised by an error message after 2–3 minutes: I'm guessing that's an nginx timeout based on the timing and the message. However, I am surprised that there would be cases in which there is no response at all.
The text was updated successfully, but these errors were encountered: