bug(silo): SSE URL double /api/ and SiloOrigin command invocation #84
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bugs
1. SSE listener connects to wrong URL (reconnection loop)
SiloEventListener._listen()constructs the SSE endpoint as:But
_get_api_url()already returns a URL ending in/api(e.g.,http://localhost:8080/api), producinghttp://localhost:8080/api/api/events. The server returns a non-event-stream response, which hits EOF immediately, triggering reconnection.The diagnostic
_test_sse()correctly uses/events(not/api/events).Fix: Change
/api/eventsto/eventsin_listen().2. SiloOrigin.openDocument() calls cmd.Activated() on C++ wrapper
silo_origin.pylines 325-327 and 357-359 use:FreeCADGui.Command.get()returns the C++Gui::Commandwrapper, which does not expose.Activated(). The correct API isFreeCADGui.runCommand("Silo_Open").Fix: Replace
cmd.Activated()calls withFreeCADGui.runCommand().