Skip to content

Fix runner.js HTTP error handling to properly propagate fetch errors#1435

Open
MatrixNeoKozak wants to merge 2 commits into
macbre:masterfrom
MatrixNeoKozak:scout-improvement-1780226958264
Open

Fix runner.js HTTP error handling to properly propagate fetch errors#1435
MatrixNeoKozak wants to merge 2 commits into
macbre:masterfrom
MatrixNeoKozak:scout-improvement-1780226958264

Conversation

@MatrixNeoKozak

Copy link
Copy Markdown

The request function in runner.js had a bug in the .then handler that referenced an undefined variable 'err' when checking resp.ok. This caused fetch errors (non-2xx status) to throw an unhandled promise rejection instead of properly calling the callback with an error. Fixed by using the resp.statusText directly and ensuring the error object is correctly constructed.

@macbre macbre self-requested a review June 11, 2026 13:31
@macbre macbre self-assigned this Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants