Skip to content

cloud_api_client: Add a few helpers for response handling - #58346

Merged
tomhoule merged 1 commit into
mainfrom
tomhoule-uknmxkykopnw
Jun 3, 2026
Merged

cloud_api_client: Add a few helpers for response handling#58346
tomhoule merged 1 commit into
mainfrom
tomhoule-uknmxkykopnw

Conversation

@tomhoule

@tomhoule tomhoule commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

This centralizes some repeated logic across cloud_api_client, to map generic request failures (ConnectionFailed, 401s) to errors and read response bodies, handling failures there too.

Closes CLO-759.

Release Notes:

  • N/A

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Jun 2, 2026
@zed-community-bot zed-community-bot Bot added the staff Pull requests authored by a current member of Zed staff label Jun 2, 2026
@tomhoule
tomhoule force-pushed the tomhoule-uknmxkykopnw branch from 11c121b to b5c7b40 Compare June 2, 2026 15:40
This centralizes some repeated logic across `cloud_api_client`:

- Attaching authentication headers
- Mapping generic request failures (`ConnectionFailed`, 401s) to errors
- Reading response bodies and handling failures there
@tomhoule
tomhoule force-pushed the tomhoule-uknmxkykopnw branch from b5c7b40 to f1aa606 Compare June 2, 2026 15:44
@tomhoule
tomhoule marked this pull request as ready for review June 2, 2026 15:59
@tomhoule
tomhoule added this pull request to the merge queue Jun 3, 2026
Merged via the queue into main with commit 74180d8 Jun 3, 2026
33 checks passed
@tomhoule
tomhoule deleted the tomhoule-uknmxkykopnw branch June 3, 2026 09:21
dandv pushed a commit to dandv/zed that referenced this pull request Jun 3, 2026
…ries#58346)

This centralizes some repeated logic across `cloud_api_client`, to map
generic request failures (`ConnectionFailed`, 401s) to errors and read
response bodies, handling failures there too.

Closes CLO-759.

Release Notes:

- N/A
TomPlanche pushed a commit to TomPlanche/zed that referenced this pull request Jun 8, 2026
…ries#58346)

This centralizes some repeated logic across `cloud_api_client`, to map
generic request failures (`ConnectionFailed`, 401s) to errors and read
response bodies, handling failures there too.

Closes CLO-759.

Release Notes:

- N/A
This was referenced Jun 18, 2026
jonx pushed a commit to jonx/zed-aros that referenced this pull request Jul 17, 2026
…ries#58346)

This centralizes some repeated logic across `cloud_api_client`, to map
generic request failures (`ConnectionFailed`, 401s) to errors and read
response bodies, handling failures there too.

Closes CLO-759.

Release Notes:

- N/A
jolutz pushed a commit to jolutz/zed that referenced this pull request Aug 8, 2026
…ries#58346)

This centralizes some repeated logic across `cloud_api_client`, to map
generic request failures (`ConnectionFailed`, 401s) to errors and read
response bodies, handling failures there too.

Closes CLO-759.

Release Notes:

- N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants