Skip to content

Fix FastAPI path parameter binding in delete_sandbox endpoint - #11

Open
mathiscode wants to merge 1 commit into
OpenHands:mainfrom
mathiscode:main
Open

Fix FastAPI path parameter binding in delete_sandbox endpoint#11
mathiscode wants to merge 1 commit into
OpenHands:mainfrom
mathiscode:main

Conversation

@mathiscode

Copy link
Copy Markdown

Changed route decorator from /{id} to /{sandbox_id} to match the function parameter name. This fixes the parameter binding mismatch where FastAPI was unable to bind the path segment to the sandbox_id parameter, causing it to be treated as a query parameter instead.

The fix makes the delete_sandbox endpoint consistent with other sandbox routes like pause and resume.

Changed route decorator from `/{id}` to `/{sandbox_id}` to match the function parameter name.
This fixes the parameter binding mismatch where FastAPI was unable to bind the path segment
to the sandbox_id parameter, causing it to be treated as a query parameter instead.

The fix makes the delete_sandbox endpoint consistent with other sandbox routes like pause and resume.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant