fix: WebSocket connectivity and DensePose initialization in dev mode#207
Open
Bharani010 wants to merge 1 commit intoruvnet:mainfrom
Open
fix: WebSocket connectivity and DensePose initialization in dev mode#207Bharani010 wants to merge 1 commit intoruvnet:mainfrom
Bharani010 wants to merge 1 commit intoruvnet:mainfrom
Conversation
Fixes 3 bugs preventing UI from connecting to backend when running frontend on :3000 and backend on :8000 (standard dev setup). Bug 1: API config assumed frontend/backend on same origin - ui/config/api.config.js now detects port 3000 and routes to :8000 - buildWsUrl() now uses backend host instead of frontend host Bug 2: Sensing service had wrong WebSocket endpoint and data format - Changed ws://localhost:3000/ws/sensing → ws://localhost:8000/api/v1/stream/pose - Added pose_data → sensing_update format transformation adapter Bug 3: DensePoseHead initialized without required config parameter - Added densepose_config dict with model architecture parameters - Fixes TypeError on backend startup Tested: Windows 11, Python 3.13.2, mock mode Result: Backend starts, WebSocket connects, real-time pose streaming works
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes 3 bugs preventing UI from connecting to backend when running frontend on :3000 and backend on :8000 (standard dev setup).
Bug 1: API config assumed frontend/backend on same origin
Bug 2: Sensing service had wrong WebSocket endpoint and data format
Bug 3: DensePoseHead initialized without required config parameter
Tested: Windows 11, Python 3.13.2, mock mode
Result: Backend starts, WebSocket connects, real-time pose streaming works