Skip to content

correct 403 response processing#74

Merged
volodymyr-narada merged 3 commits into
mainfrom
volodymyr/correct-403-response-processing
Mar 3, 2026
Merged

correct 403 response processing#74
volodymyr-narada merged 3 commits into
mainfrom
volodymyr/correct-403-response-processing

Conversation

@volodymyr-narada

@volodymyr-narada volodymyr-narada commented Feb 23, 2026

Copy link
Copy Markdown
Contributor

Note

Medium Risk
Moderate risk: changes error handling for the cloud session creation path and adds dynamic attributes on raised exceptions, which may affect downstream callers’ error parsing/behavior.

Overview
Improves handling of 403 Forbidden responses when creating a cloud browser session by parsing the response body (via new ApiErrorPayload) and raising a RuntimeError that includes attached status_code and parsed detail for programmatic consumption.

Non-403 failures keep the existing behavior (raising a generic RuntimeError with status/text), but the client now attempts to interpret JSON error payloads more robustly.

Written by Cursor Bugbot for commit 87db542. This will update automatically on new commits. Configure here.

Comment thread packages/narada/src/narada/client.py Outdated
Comment thread packages/narada/src/narada/client.py Outdated
Comment thread packages/narada/src/narada/client.py Outdated

@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 and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Comment thread packages/narada/src/narada/client.py
Comment thread packages/narada/src/narada/client.py Outdated
@volodymyr-narada volodymyr-narada merged commit 277e04f into main Mar 3, 2026
5 checks passed
@volodymyr-narada volodymyr-narada deleted the volodymyr/correct-403-response-processing branch March 3, 2026 20:50
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.

2 participants