Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GeekyMonkey opened this issue Nov 14, 2024 · 1 comment

Comments

@GeekyMonkey
Copy link

⚠️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
Copy link
Member

SachaG commented Nov 14, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants