Skip to content

MS Learn Module Update Request: [REPLACE_WITH_MODULE_TITLE] #396

Backlog

Description

@kerolon

Which of the MS Learn modules from the dropdown are you submitting an update request?

None

Content URL

https://learn.microsoft.com/ja-jp/training/modules/advanced-github-copilot/5-exercise-update-a-web-api

Additional information

  • Fix a broken user experience (broken links, exercise error, etc.)
  • Update incorrect information
  • Add new content to the module
  • Some other request

Information about the requested update

Incorrect Uvicorn module path in "postAttachCommand" prevents the web application from starting

Affected exercise:
"Exercise - Update a web API" (https://learn.microsoft.com/ja-jp/training/modules/advanced-github-copilot/5-exercise-update-a-web-api)

Description

The exercise instructs learners to check the startup terminal after launching GitHub Codespaces. However, the web application fails to start automatically because the Uvicorn module path specified in "postAttachCommand" in ".devcontainer/devcontainer.json" is incorrect.

The current command is:

/home/vscode/venv/bin/python -m uvicorn webapp.main:app --host 0.0.0.0 --port 8000 --reload

Running this command manually results in the following error:

ModuleNotFoundError: No module named 'webapp'

Cause

The "main.py" file is located directly in the repository root, not in a "webapp" directory.

Suggested fix

Update the Uvicorn module path from "webapp.main:app" to "main:app" in "postAttachCommand":

/home/vscode/venv/bin/python -m uvicorn main:app --host 0.0.0.0 --port 8000 --reload

I confirmed that the web application starts successfully when running the corrected command manually.

Updating the configuration should allow learners to proceed with the exercise as documented without having to troubleshoot the startup failure.

Activity

  1. github-actions commented on Dec 1, 2026

    @github-actions

    🧰 Skills Exercise Review Needed

    This report concerns a GitHub Skills training or exercise. We are moving the complaint to the Skills exercise team to address.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions