[Incident][108dev] Questions submission 500 on /api/questions/grader/interaction

Open
#142 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
20/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
api, backend

Research direction

Inspect the POST /api/questions/grader/interaction endpoint and its questions orchestration path; verify handling for unresolved or graderless case_id values and the QuestionEvaluationResult-shaped response. Confirm answer submission no longer returns 500, then check the tutor-questions-108dev deployment target.

Written by the indexing model from the issue text.

Description

Summary

Frontend questions page fails when submitting an answer.

Observed error:

  • POST /api/questions/grader/interaction -> 500 Internal Server Error
  • Console surfaced AxiosError during answer submission.

Root Cause

case_id selected in UI may reference an assembly without graders (or unresolved assembly), which currently raises a ValueError inside questions orchestration and bubbles to 500.

Fix implemented (code)

  • Added resilient fallback in questions API endpoint:
    • catches ValueError/RuntimeError from evaluation orchestration
    • returns HTTP 200 with baseline feedback payload in QuestionEvaluationResult shape
    • prevents frontend hard failure while Foundry assembly provisioning is stabilized.

Deployment

Break-glass direct live deployment will update utor-questions-108dev with this fix.

Related: #139 #141

Dominant language
Python
Stars
17
Forks
8
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Azure-Samples/tutor

All issues in Azure-Samples/tutor

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.