Trouble with submitting forms today

I’ve gotten error messages on a couple different forms today, not sure if its a larger noloco issue or something on my end but I haven’t changed anything on these data collections and I’ve tried syncing everything.

1 Like

Hey @onlymatt if you’re still having problems can you let our support team know, we haven’t heard this from anyone else.

edit: I think I fixed my issue, see notes at bottom on fix

Hmm yes, seeing on my end as well @darragh - first time ive ever seen this error… nothing has changed on my end in the last few days, first report of this issue is today, though may be longer

On submission in the console I see:

fetch.js:1 
 POST https://api.noloco.io/mutation/XXXX 400 (Bad Request)

index-hpxfPGTV.js:99 ApolloError: Response not successful: Received status code 400
    at new t (index-hpxfPGTV.js:68:152)

The network request CURL on the button click (the 404) (with some items omitted)…

curl 'https://api.noloco.io/mutation/XXXXX' \
  -H 'accept: */*' \
  -H 'accept-language: en-US,en;q=0.9' \
  -H 'authorization: XXXXXXXX' \
  -H 'cache-control: no-cache' \
  -H 'content-type: application/json' \
  -H 'origin: https://app.XXXXXX.ai' \
  -H 'pragma: no-cache' \
  -H 'priority: u=1, i' \
  -H 'referer: https://app.XXXXXX.ai/' \
  -H 'sec-ch-ua: "Google Chrome";v="131", "Chromium";v="131", "Not_A Brand";v="24"' \
  -H 'sec-ch-ua-mobile: ?0' \
  -H 'sec-ch-ua-platform: "macOS"' \
  -H 'sec-fetch-dest: empty' \
  -H 'sec-fetch-mode: cors' \
  -H 'sec-fetch-site: cross-site' \
  -H 'user-agent: XXXXXX' \
  -H 'x-noloco-ghost: false' \
  -H 'x-noloco-project: books2' \
  --data-raw $'{"operationName":"createProjects","variables":{"XXXXXXX}"}'

All the POST info seems correct from what I can tell.

Important - it is just this form on my site… another form submits correctly. However, as noted, I have not made any recent changes to this form or data type. Hmm!

I’ll open a ticket if i cant figure it out on my end, and will update this thread if i do figure it out

– Debug Edit #1

  • Can still make projects via the API - so seems to be form specific.
  • Verified logging out and back in wasn’t related to the issue

Debug Edit #2

Verified every form input is valid based on the chatbot’s suggestion:

double checked each ‘single input hidden form’ item with luck.

Debug Edit #3

Attempted form on another account on another browser. Not working.

Debug Edit #4

When i create a new view with a new ‘create project’ button form, the new form works with just a few basic forms. Attempting to identify which field is the issue.

Issue Resolved - here’s the bug…

If you have a single select item, and you have a default value set to ‘false’:

It seems, at least in my case, this caused some issue with submitting the form. Perhaps submitting returns the value as ‘null’ and that’s not allowed or something?

When i changed the default value to ‘true’ the form worked again, and it works as a hidden value set to true.

This must have been something recently that changed as it’s been default to false for many months now.

2 Likes

Thanks for debugging this @seanvosler - the Engineering team will take a look at this ASAP.

We’ll keep you posted

Yep - just reported this error on one of my forms today too!