#242 — BUG: Notification - Cannot call “send” once a close message has been sent.
Repo: Twill-AI/facade State: closed | Status: done Assignee: Unassigned
Created: 2024-12-12 · Updated: 2025-03-24
Description
Caused by https://twill-network.slack.com/archives/C07TPN6FCBX/p1733976623407239
Steps to reproduce: Probably following:
- In staging login under user with existing and live integration.
- Leave browser page without notifying Facade that WS connection was lost (maybe just disconnect internet, not sure how it is possible, but for Martin’s tenant it happened in his 1 AM).
- Wait until nightly update when BD calls POST http://ca-staging-twill-facade-eastus/api/v1/master/bdstate/tenants/MartinLLC9/bdintegrations/1
Expected behavior: POST http://ca-staging-twill-facade-eastus/api/v1/master/bdstate/tenants/MartinLLC9/bdintegrations/1 returns 200.
Actual behavior: POST http://ca-staging-twill-facade-eastus/api/v1/master/bdstate/tenants/MartinLLC9/bdintegrations/1 failed with 500
BD tried to call it 3 times and all the time 500 was returned. See [logs](https://portal.azure.com#@ca84ad29-936a-41a9-a523-35c3760c1302/blade/Microsoft_OperationsManagementSuite_Workspace/Logs.ReactView/resourceId/%2Fsubscriptions%2F9fada0e8-ad9d-4af4-ae3e-c50dadb7296c%2Fresourcegroups%2Frg-staging-twill-eastus%2Fproviders%2Fmicrosoft.operationalinsights%2Fworkspaces%2Fworkspacergstagingtwilleastusad9c/source/LogsBlade.AnalyticsShareLinkToQuery/q/H4sIAAAAAAAAA2WOPQvCQAyG9%252F6Ko7MHXRxvkBtEqE7FtYQ2npH74hLp4o%252F3%252FEAFMwTyPsn7xqYoQBHLJmebIiePfXI82r65qeWMBZX9WTlAwJGVMaqdQLOAo%252Bi0LOS9PsEEM2oEliu39TyXdMFJGlVroIDm0bZYnUBwXj31t6f5D3nxIxamFL98F8B96B6Z62jqyyPXRE%252BBRK27rrsD1LLNXNgAAAA%25
Notes
Add implementation notes, blockers, and context here
Related
Add wikilinks to related people, meetings, or other tickets