Skip to content

Blank demo hen running documented uvicorn command #160

Open

Description

@cedrichelewaut

Running the command from the demo/server.py docstring:

PYTHONPATH=. uvicorn demo.server:app --port 8080

opens the page at /demo, but no charts appear. The log shows:

POST /demo/dashboard/update HTTP/1.1" 404 Not Found

The page requests /demo/dashboard/update, but the app only serves /dashboard/update. The Docker setup works because demo/nginx.conf strips the /demo prefix. server2.py to server4.py have the same problem; server_gif.py doesn't (it uses request.base_url).

Suggested fix: build the URL from the request like server_gif.py, or document that the demo needs docker-compose.

Activity

  1. cedrichelewaut commented on Oct 9, 2026

    @cedrichelewaut
    Author

    Note: following the flexviz.tech site's route (pip install flexviz and the Dashboard(...).show() example) works fine, and the page loads because show() uses an absolute server URL. The blank page only happens with the repo's demo/server*.py files, which is the route Claude picked for me when asked to "try out FlexViz".

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

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