nextcloud/forms

An error occurred while sending the questionnaire

lapor-kris opened this issue · 6 comments

Describe the bug
If I try to send the questionnaire, I get the error: "An error occured while sending the questionnaire"

To Reproduce
Steps to reproduce the behavior:

  1. Open a questionnaire
  2. Fill it
  3. Send it

Expected behavior
It should send the questionnaire and inform you, that the questionnaire is accepted.

Screenshots
Zaslonska slika 2024-05-14 09-56-07

Nextcloud (please complete the following information):

  • Nextcloud-Version: 28.0. 5
  • Forms-Version: 4.2.4
    Desktop (please complete the following information):
  • OS: Fedora 40
  • Browser: Firefox, Chromium
  • Version 126, 125

Additional context
The issue happened after one of the upgrades of the app. I was not aware of, because we didn't use it for couple of months. Last week we started to use it and we could not any more.

Any idea where to search for the problem? Thanks

Hi @lapor-kris

without any logs we can't help you any further, as this might happen due to different things. So the first step should be to have a look at the browser console and see the exact error message related to the message.

Some guesses:

  • You have a "required" field with radio buttons/checkboxes that aren't filled
  • You have linked the form results to a file in a folder that is shared with the user who created the form
  • ...

Hi @Chartman123

thanks for your fast reply and suggestions.

  • I filled all of the fields;
  • there is something with the sharing part. I unshared my questionnaire and it started to work. But my co-workers questionnaire just doesn't work.
    I'll have to dig a bit deeper here. I'll check it out and let you know what was wrong.

@lapor-kris thanks for the feedback. As I pointed out before, the best place to start would be the browser console in the developer tools of the browser.

I managed to get some logs from the console:

[ERROR] forms: Error while submitting the form 
Object { app: "forms", uid: "Kristijan Tkalec", level: 2, error: {…} }
​
app: "forms"
​
error: Object { stack: "V@https://oblak.kersnikova.org/apps/forms/js/NcSettingsSection-B0-LmypW-DDIm67GF.mjs:2:263181\ntp@https://oblak.kersnikova.org/apps/forms/js/NcSettingsSection-B0-LmypW-DDIm67GF.mjs:2:274513\ny@https://oblak.kersnikova.org/apps/forms/js/NcSettingsSection-B0-LmypW-DDIm67GF.mjs:2:277704\nEventHandlerNonNull*up</<@https://oblak.kersnikova.org/apps/forms/js/NcSettingsSection-B0-LmypW-DDIm67GF.mjs:2:277776\nup<@https://oblak.kersnikova.org/apps/forms/js/NcSettingsSection-B0-LmypW-DDIm67GF.mjs:2:276681\nqi@https://oblak.kersnikova.org/apps/forms/js/NcSettingsSection-B0-LmypW-DDIm67GF.mjs:2:280466\n_request@https://oblak.kersnikova.org/apps/forms/js/NcSettingsSection-B0-LmypW-DDIm67GF.mjs:2:284428\nrequest@https://oblak.kersnikova.org/apps/forms/js/NcSettingsSection-B0-LmypW-DDIm67GF.mjs:2:282978\nt/<@https://oblak.kersnikova.org/apps/forms/js/NcSettingsSection-B0-LmypW-DDIm67GF.mjs:2:284884\nic/<@https://oblak.kersnikova.org/apps/forms/js/NcSettingsSection-B0-LmypW-DDIm67GF.mjs:2:230277\nonConfirmedSubmit@https://oblak.kersnikova.org/apps/forms/js/Submit-DWdudiQx.mjs:2:1194311\nonSubmit@https://oblak.kersnikova.org/apps/forms/js/Submit-DWdudiQx.mjs:2:1194205\nsubmit@https://oblak.kersnikova.org/apps/forms/js/Submit-DWdudiQx.mjs:2:1197304\nme@https://oblak.kersnikova.org/apps/forms/js/vendor-DFuGXkIP.mjs:2:23625\nt@https://oblak.kersnikova.org/apps/forms/js/vendor-DFuGXkIP.mjs:2:13945\nYc/i._wrapper@https://oblak.kersnikova.org/apps/forms/js/vendor-DFuGXkIP.mjs:2:60722\n", message: "Request failed with status code 400", name: "AxiosError", … }
​
level: 2
​
uid: "Kristijan Tkalec"
​
<prototype>: Object { … }
NcSettingsSection-B0-LmypW-DDIm67GF.mjs:2:337929
    value https://oblak.kersnikova.org/apps/forms/js/NcSettingsSection-B0-LmypW-DDIm67GF.mjs:2
    value https://oblak.kersnikova.org/apps/forms/js/NcSettingsSection-B0-LmypW-DDIm67GF.mjs:2
    onConfirmedSubmit https://oblak.kersnikova.org/apps/forms/js/Submit-DWdudiQx.mjs:2
    onSubmit https://oblak.kersnikova.org/apps/forms/js/Submit-DWdudiQx.mjs:2
    submit https://oblak.kersnikova.org/apps/forms/js/Submit-DWdudiQx.mjs:2
    me https://oblak.kersnikova.org/apps/forms/js/vendor-DFuGXkIP.mjs:2
    t https://oblak.kersnikova.org/apps/forms/js/vendor-DFuGXkIP.mjs:2
    _wrapper https://oblak.kersnikova.org/apps/forms/js/vendor-DFuGXkIP.mjs:2

Could you please also have a look at your Nextcloud log file if there are some related errors logged?