Devographics / Monorepo

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

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

Closed yogeshdatir closed 11 months ago

yogeshdatir commented 1 year ago

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

Submitted Data:

{
  "react2023__user_info__age__choices": "range_25_34",
  "react2023__user_info__years_of_experience__choices": "range_2_5",
  "react2023__user_info__company_size__choices": "range_100_1000",
  "react2023__user_info__yearly_salary__choices": "range_10_30",
  "react2023__user_info__higher_education_degree__choices": "yes_related",
  "react2023__user_info__country": "IND",
  "react2023__user_info__gender__choices": "male",
  "react2023__user_info__race_ethnicity__choices": [
    "south_asian"
  ],
  "react2023__user_info__disability_status__choices": [
    "mobility_impairments",
    "not_listed"
  ],
  "undefined": "This week in react newsletter",
  "receiveNotifications": true,
  "lastSavedAt": "2023-08-16T02:04:54.012Z",
  "locale": "en-US",
  "finishedAt": "2023-08-16T02:04:54.012Z"
}

Location

https://survey.devographics.com/en-US/survey/state-of-react/2023/r17lfJddwKKZNnLE3zb5U/14

Timestamp

Wed Aug 16 2023 07:34:54 GMT+0530 (India Standard 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

I see what the issue is, I'll work on a fix. Thanks!