Skip to content

web\app.py #13

Backlog
Backlog

Description

@infocommeng

Describe the bug
Incorrect call to fatapi

To Reproduce
Steps to reproduce:

  1. In windows 11 terminal
  2. Type "pythonclaw start"
  3. In browser go to: http://localhost:7788/

Expected behavior
Web page to appear - pythonclaw dashboard

Environment

  • OS: Windows 11 Home
    Version 26H2
    OS build 26300.9974
  • Python 3.14.7
  • PythonClaw version: 0.7.2
  • Fastapi version: 0.165.0

Logs
daemon.log says:
Traceback (most recent call last):
File "", line 203, in _run_module_as_main
File "", line 88, in run_code
File "C:\Python314\Lib\site-packages\pythonclaw_main
.py", line 6, in
main()
~~~~^^
File "C:\Python314\Lib\site-packages\pythonclaw\main.py", line 567, in main
handler(args)
~~~~~~~^^^^^^
File "C:\Python314\Lib\site-packages\pythonclaw\main.py", line 168, in _cmd_start
_run_foreground(args)
~~~~~~~~~~~~~~~^^^^^^
File "C:\Python314\Lib\site-packages\pythonclaw\main.py", line 210, in _run_foreground
app = create_app(provider, build_provider_fn=_build_provider)
File "C:\Python314\Lib\site-packages\pythonclaw\web\app.py", line 101, in create_app
app.add_websocket_route("/ws/chat", _ws_chat)
^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'FastAPI' object has no attribute 'add_websocket_route'. Did you mean: 'add_api_websocket_route'?

replace line 101 with:
app.add_api_websocket_route("/ws/chat", _ws_chat)

Activity

  1. added
    bug
    on Nov 28, 2026
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions