#52 — Make WS work in staging/Azure

Repo: Twill-AI/facade State: closed | Status: done Assignee: Unassigned

Created: 2024-07-30 · Updated: 2025-09-15

Description

AC:

  • Fix TODO’s in code of facade to parse IP of the user, not Azure Gateway (IP values like “10.0.2.21” and changing between calls).
  • Make sure that WS connection works in staging environment.
  • Optional: if GET ticket multiple times then 500 may happen with response
{
  "message": "dictionary changed size during iteration",
  "stack": [
    "Traceback (most recent call last):\n",
    "  File \"/usr/local/lib/python3.12/site-packages/starlette/middleware/errors.py\", line 164, in __call__\n    await self.app(scope, receive, _send)\n",
    "  File \"/usr/local/lib/python3.12/site-packages/starlette/middleware/cors.py\", line 83, in __call__\n    await self.app(scope, receive, send)\n",
    "  File \"/usr/local/lib/python3.12/site-packages/starlette/middleware/exceptions.py\", line 62, in __call__\n    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n",
    "  File \"/usr/local/lib/python3.12/site-packages/starlette/_exception_handler.py\", line 64, in wrapped_app\n    raise exc\n",
    "  File \"/usr/local/lib/python3.12/site-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n    await app(scope, receive, sender)\n",
    "  File \"/usr/local/lib/python3.12/site-packages/starlette/routing.py\", line 758, in __call__\n    await self.middleware_stack(scope, receive, send)\n",
    "  File \"/usr/local/lib/python3.12/site-packages/starlette/routing.py\", line 778, in app\n    await route.handle(scope, receive, send)\n",
    "Runti

## Notes

_Add implementation notes, blockers, and context here_

## Related

_Add wikilinks to related people, meetings, or other tickets_