Monorepo
Monorepo copied to clipboard
[surveyform] saveResponse Issue: Encountered an error while validating client data during update
⚠️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_less_than_1",
"react2023__user_info__company_size__choices": "na",
"react2023__user_info__yearly_salary__choices": "range_50_100",
"react2023__user_info__higher_education_degree__choices": "yes_unrelated",
"react2023__user_info__country": "USA",
"react2023__user_info__gender__choices": "male",
"react2023__user_info__disability_status__choices": [],
"undefined": "",
"lastSavedAt": "2023-07-25T14:06:40.541Z",
"locale": "en-US",
"finishedAt": "2023-07-25T14:06:40.541Z"
}
Location
https://survey.devographics.com/en-US/survey/state-of-react/2023/PabFSWjhZOTkUNGtVCDTh/14
Timestamp
Tue Jul 25 2023 09:06:43 GMT-0500 (Central Daylight 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"
}
}
@gpkarlsson It's old but by any change, do you know which question was affected? I am working on an idea to make this issue less blocking (https://github.com/Devographics/Monorepo/issues/280), sadly the backend can't tell which field is faulty. I've added a console.warn in the client log to help with that.
HI @eric-burel - I unfortunately do not remember exactly off the top of my head, but I think it might have been somewhere in the "About You" section. Looking at the data in issue the I submitted, and looking back at survey, I want to say maybe it was the disability status question or possibly the How Did You Hear About Us? Sorry I don't have a better answer for you, but hopefully this helps at least a little bit.
It helps a lot @gpkarlsson thanks :pray: