Devographics / Monorepo

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

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

Open GeekyMonkey opened 1 week ago

GeekyMonkey commented 1 week ago

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

Submitted Data:

{
  "js2024__resources__people": null,
  "js2024__resources__courses__choices": [
    "udemy",
    "pluralsight",
    "vue_mastery"
  ],
  "js2024__resources__newsletters__choices": [
    "vue_news"
  ],
  "js2024__resources__podcasts__others": "DotNet Rocks",
  "js2024__resources__video_creators__choices": [
    "theo_browne",
    "web_dev_simplified",
    "matt_pocock",
    "kevin_j_powell",
    "freecodecamp"
  ],
  "js2024__resources__other_surveys__choices": [
    "state_of_html_survey"
  ],
  "lastSavedAt": "2024-11-14T01:12:25.708Z",
  "locale": "en-US"
}

Location

https://survey.devographics.com/en-US/survey/state-of-js/2024/8Lxo47ABAAC3DJu1rRM5B/10

Timestamp

Thu Nov 14 2024 01:12:26 GMT+0000 (Greenwich Mean 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": [
          "js2024__resources__video_creators__choices"
        ],
        "path": [],
        "message": "Unrecognized key(s) in object: 'js2024__resources__video_creators__choices'"
      }
    ],
    "name": "ZodError"
  }
}
SachaG commented 1 week ago

Oh right, this is because I changed the "Video Creators" question from a list of predefined option to a freeform text input. So it didn't recognize the payload anymore. If you try again now with the new input it should hopefully work?