[Incident][108dev] Questions API 500 due to Cosmos env drift (empty endpoint/database)

Open
#144 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start with related issue #139, then review the Cosmos environment baseline for the tutor-questions-108dev container apps. Re-validate GET /api/questions/questions and GET /api/questions/assemblies through APIM; done means both endpoints no longer return 500 errors and the remediation evidence is logged in #139.

Written by the indexing model from the issue text.

Description

Summary

Questions frontend is failing with internal server errors on:

  • GET /api/questions/questions
  • GET /api/questions/assemblies

Observed error

API payload returns:

  • Invalid URL scheme or hostname: SplitResult(scheme='', netloc='', path='', query='', fragment='')

Root cause

COSMOS_ENDPOINT and COSMOS_DATABASE were empty in tutor-questions-108dev runtime environment.

Immediate remediation plan (live)

  • Re-apply Cosmos env baseline to 108dev container apps.
  • Re-validate Questions endpoints through APIM.
  • Log actions and evidence in #139.

Related: #139

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.