Devographics / Monorepo

Monorepo containing the State of JS apps
surveyform-sigma.vercel.app
Other
125 stars 50 forks source link

[surveyform] saveResponse Issue: Encountered an error while validating client data during update #235

Closed donglnp closed 1 year ago

donglnp commented 1 year ago

⚠️IMPORTANT: please make sure to remove any private data from the “Submitted Data” log⚠️

Submitted Data:

{
  "css2023__tools__bootstrap__experience": "would_not_use",
  "css2023__tools__materialize_css__experience": "would_not_use",
  "css2023__tools__ant_design__experience": "interested",
  "css2023__tools__semantic_ui__experience": "not_interested",
  "css2023__tools__bulma__experience": "never_heard",
  "css2023__tools__foundation__experience": "not_interested",
  "css2023__tools__ui_kit__experience": "not_interested",
  "css2023__tools__tachyons__experience": "never_heard",
  "css2023__tools__tailwind_css__experience": "interested",
  "css2023__tools__pure_css__experience": "interested",
  "css2023__tools__open_props__experience": "never_heard",
  "css2023__tools__blaze_ui__experience": "never_heard",
  "css2023__tools__uno_css__experience": "never_heard",
  "undefined": "Mat UI",
  "lastSavedAt": "2023-07-05T08:29:35.740Z",
  "locale": "en-US"
}

Location

https://survey.devographics.com/en-US/survey/state-of-css/2023/gx6Rm2uVRQFfIsFR3iTcY/8

Timestamp

Wed Jul 05 2023 15:29:36 GMT+0700 (Indochina Time)

Error:

{
  "id": "client_data_validation_error",
  "status": 400,
  "message": "Encountered an error while validating client data during update",
  "error": {
    "issues": [
      {
        "code": "unrecognized_keys",
        "keys": [
          "undefined"
        ],
        "path": [],
        "message": "Unrecognized key(s) in object: 'undefined'"
      }
    ],
    "name": "ZodError"
  }
}
SachaG commented 1 year ago

Hmm, that's strange. In your request where it says undefined I think the proper key should be css2023__tools_others__css_frameworks__others. I'm not sure why that happened, but could you try reloading the page and filling out that section again? If it still happens you can also just skip that section, hopefully you're still able to fill out the rest of the survey.