nextcloud / forms

📝 Simple form & survey app for Nextcloud
https://apps.nextcloud.com/apps/forms
GNU Affero General Public License v3.0
324 stars 98 forks source link

An error occurred while sending the questionnaire #2186

Closed lapor-kris closed 5 months ago

lapor-kris commented 5 months ago

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):

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

Chartman123 commented 5 months ago

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:

lapor-kris commented 5 months ago

Hi @Chartman123

thanks for your fast reply and suggestions.

Chartman123 commented 5 months ago

@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.

lapor-kris commented 5 months ago

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
Chartman123 commented 5 months ago

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

lapor-kris commented 5 months ago

Sorry, I managed to get sick and could not operate the computer. I did get the information from our IT guy, that there is nothing related to Forms in Nextcloud log files. New questionnaires work as expected. I have no idea what caused the issues. I will close the issue. Thanks

lachmanfrantisek commented 1 month ago

Hello,

I am hitting a similar issue and it looks like it's only when there are checkboxes or radio buttons..

It's only effective if the question is answered. (See the screenshots below.)

Here are the browser logs:

[ERROR] forms: Error while submitting the form 
Object { app: "forms", level: 0, error: {…} }
[NcSettingsSection-V9DkkSuI-DIvibN42.chunk.mjs:941:434](???/apps2/forms/js/NcSettingsSection-V9DkkSuI-DIvibN42.chunk.mjs)
log https://???/apps2/forms/js/NcSettingsSection-V9DkkSuI-DIvibN42.chunk.mjs:941
error https://???/apps2/forms/js/NcSettingsSection-V9DkkSuI-DIvibN42.chunk.mjs:941
onConfirmedSubmit https://???/apps2/forms/js/Submit-VdG59qwp.chunk.mjs:4836
onSubmit https://???/apps2/forms/js/Submit-VdG59qwp.chunk.mjs:4836
submit https://???/apps2/forms/js/Submit-VdG59qwp.chunk.mjs:4836
me https://???/apps2/forms/js/vendor-IHXb49lc.chunk.mjs:2
n https://???/apps2/forms/js/vendor-IHXb49lc.chunk.mjs:2
_wrapper https://???/apps2/forms/js/vendor-IHXb49lc.chunk.mjs:2
(Async: EventListener.handleEvent)
Qc https://???/apps2/forms/js/vendor-IHXb49lc.chunk.mjs:2
Zo https://???/apps2/forms/js/vendor-IHXb49lc.chunk.mjs:2
mn https://???/apps2/forms/js/vendor-IHXb49lc.chunk.mjs:2
y https://???/apps2/forms/js/vendor-IHXb49lc.chunk.mjs:2
u https://???/apps2/forms/js/vendor-IHXb49lc.chunk.mjs:2
_ https://???/apps2/forms/js/vendor-IHXb49lc.chunk.mjs:2
u https://???/apps2/forms/js/vendor-IHXb49lc.chunk.mjs:2
Uc https://???/apps2/forms/js/vendor-IHXb49lc.chunk.mjs:2
_update https://???/apps2/forms/js/vendor-IHXb49lc.chunk.mjs:2
r https://???/apps2/forms/js/vendor-IHXb49lc.chunk.mjs:2
get https://???/apps2/forms/js/vendor-IHXb49lc.chunk.mjs:2
e https://???/apps2/forms/js/vendor-IHXb49lc.chunk.mjs:2
ys https://???/apps2/forms/js/vendor-IHXb49lc.chunk.mjs:2
$mount https://???/apps2/forms/js/vendor-IHXb49lc.chunk.mjs:2
init https://???/apps2/forms/js/vendor-IHXb49lc.chunk.mjs:2
p https://???/apps2/forms/js/vendor-IHXb49lc.chunk.mjs:2
u https://???/apps2/forms/js/vendor-IHXb49lc.chunk.mjs:2
Uc https://???/apps2/forms/js/vendor-IHXb49lc.chunk.mjs:2
_update https://???/apps2/forms/js/vendor-IHXb49lc.chunk.mjs:2
r https://???/apps2/forms/js/vendor-IHXb49lc.chunk.mjs:2
get https://???/apps2/forms/js/vendor-IHXb49lc.chunk.mjs:2
e https://???/apps2/forms/js/vendor-IHXb49lc.chunk.mjs:2
ys https://???/apps2/forms/js/vendor-IHXb49lc.chunk.mjs:2
$mount https://???/apps2/forms/js/vendor-IHXb49lc.chunk.mjs:2
init https://???/apps2/forms/js/vendor-IHXb49lc.chunk.mjs:2
p https://???/apps2/forms/js/vendor-IHXb49lc.chunk.mjs:2

Here are the screenshots: 1) Nothing filled: Image 2) sent correctly: Image 3) check boxes: Image 4) radio buttons: Image

I can't see anything related in the server logs...

Chartman123 commented 1 month ago

@lachmanfrantisek please create a new issue and fill the bug template. Thank you very much.