Skip to content

API Service Unavailable After Deployment Due to Missing 'six' Module #7

@Menghua1

Description

@Menghua1

Describe the issue:
After running azd up, the API endpoint fails to load in the browser and returns a 503 Service Unavailable error. Checking the logs on the Azure portal reveals a missing six module, as shown in the image below:

In addition, this issue can also be reproduced in todo-python-mongo-aca and todo-python-mongo-terraform.
Image
Image

Repro Steps:

  1. Run azd init -t todo-python-mongo -b staging.
  2. Run azd up
  3. Click the api url in the log.

Environment:

  • Template: todo-python-mongo, todo-python-mongo-aca, todo-python-mongo-terraform.
  • OS: Windows
  • Branch: Staging
  • Azd version: azd version 1.21.0-beta.1-daily.5505216 (commit 73b7edcbf0da38b170d635f250043e7d4213e65e).

Expected behavior:
The api page can be loaded successfully.

Suggestion:
Add six == 1.17.0 to src/api/requirements.txt.

@rajeshkamal5050 for notification.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions