[PR #11423] [MERGED] api: fix unreachable status err #44783

Closed
opened 2026-04-25 00:27:13 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/11423
Author: @BruceMacD
Created: 7/15/2025
Status: Merged
Merged: 7/16/2025
Merged by: @BruceMacD

Base: mainHead: brucemacd/statuserr


📝 Commits (2)

📊 Changes

2 files changed (+14 additions, -4 deletions)

View changed files

📝 api/client.go (+4 -4)
📝 api/client_test.go (+10 -0)

📄 Description

StatusError was unreachable, the client always checked for error messages in the response body first, and the server always includes error messages with HTTP error status codes.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/11423 **Author:** [@BruceMacD](https://github.com/BruceMacD) **Created:** 7/15/2025 **Status:** ✅ Merged **Merged:** 7/16/2025 **Merged by:** [@BruceMacD](https://github.com/BruceMacD) **Base:** `main` ← **Head:** `brucemacd/statuserr` --- ### 📝 Commits (2) - [`dfdd9c5`](https://github.com/ollama/ollama/commit/dfdd9c56fa86b5ac71b9fcd0fae7de718f404ab8) api: fix unreachable status err - [`8ef0a8d`](https://github.com/ollama/ollama/commit/8ef0a8d2ccc0f64609fbb2e58e0b1fac294bfd22) update test wording ### 📊 Changes **2 files changed** (+14 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `api/client.go` (+4 -4) 📝 `api/client_test.go` (+10 -0) </details> ### 📄 Description StatusError was unreachable, the client always checked for error messages in the response body first, and the server always includes error messages with HTTP error status codes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-25 00:27:14 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#44783