Devographics / Devographics/Monorepo

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

Open
#451 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
178
Forks
55
Avg merge
1m
Merged PRs (30d)
2

Description

⚠️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"
}
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

No source file or test is named. Start from the survey URL and submitted payload, then trace the update-validation entry point for the reported ZodError and determine whether the rejected key should be accepted; done means resolving the validation failure and confirming that the update succeeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.