Skip to content

Avoid 308 - #30

Merged
urfeex merged 4 commits into
UniversalRobots:masterfrom
urfeex:avoid_308
Aug 5, 2026
Merged

urfeex merged 4 commits into
UniversalRobots:masterfrom
urfeex:avoid_308

Conversation

@urfeex

@urfeex urfeex commented Jul 23, 2026

Copy link
Copy Markdown
Member

Fixes #26


Note

Low Risk
Small HTTP routing and socket timeout behavior changes in the external-control backend; no auth or data-model impact.

Overview
Flask GET route /<port>/<robotIP>/ now sets strict_slashes=False, so requests with or without a trailing slash are handled directly instead of triggering a 308 redirect (fixes #26).

RequestProgram.send_command separates connect vs receive timeouts: 5s for connect, 1s per recv with a 5s overall receive budget. Failed connects still surface Connection timeout; stalled receives with no data now raise Timeout while receiving data. The unit test expectation was updated for that message.

Reviewed by Cursor Bugbot for commit 714c146. Bugbot is set up for automated code reviews on this repo. Configure here.

@urfeex
urfeex requested a review from urrsk July 23, 2026 10:32
Comment thread external-control-backend/src/request_program.py

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.

Fix All in Cursor

Reviewed by Cursor Bugbot for commit c03b93c. Configure here.

Comment thread external-control-backend/src/request_program.py
Comment thread external-control-backend/src/request_program.py
Comment thread external-control-backend/src/request_program.py
@urfeex
urfeex merged commit 05b4ee3 into UniversalRobots:master Aug 5, 2026
4 checks passed
@urfeex
urfeex deleted the avoid_308 branch August 5, 2026 09:02
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.

Update program fails due to 308 redirect and networking mismatch

2 participants