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

"I'm unsure" produces runtime error #867

Open
mccalluc opened this issue Feb 12, 2024 · 0 comments
Open

"I'm unsure" produces runtime error #867

mccalluc opened this issue Feb 12, 2024 · 0 comments

Comments

@mccalluc
Copy link

In the first step of the wizard, clicking the radio button for "I'm unsure" produces an immediate error.

In the network tab I see a 400 for PATCH https://demo.dpcreator.org/api/depositor-setup-info/144e4877-8076-4afb-956a-d378f7a9b43c/ with this payload:

{"dataset_questions":{"radio_depend_on_private_information":"unsure","radio_best_describes":"","radio_only_one_individual_per_row":""},"default_epsilon":null,"default_delta":null,"epsilon":null,"delta":null}

and this response:

{"dataset_questions":["Dataset question \"radio_depend_on_private_information\" should have a \"yes\" or \"no\" answer, not \"unsure\""]}
  • Suggest the "I'm unsure" option be removed if it's not supported.
  • And if the API is returning human-readable error messages, we present them in a human-readable way, instead of just giving a developer view of the JSON in the UI:
{
  data:{...}
  status:400
  statusText:"Bad Request"
  headers:{...}
  config:{...}
}
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

1 participant