[PR #1552] Docker API stat path #1339

Open
opened 2026-02-26 12:11:15 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/0xJacky/nginx-ui/pull/1552
Author: @0xJacky
Created: 2/8/2026
Status: 🔄 Open

Base: devHead: cursor/docker-api-stat-path-27ca


📝 Commits (1)

  • 0ee88d8 fix: improve Docker StatPath with better error diagnostics

📊 Changes

1 file changed (+33 additions, -2 deletions)

View changed files

📝 internal/docker/stat_path.go (+33 -2)

📄 Description

Improve Docker StatPath error messages to better diagnose container not found issues.

The previous 404 "API route and version" error was misleading. The Docker API version negotiation was working correctly, but the daemon returned 404 because the specified container was not found or accessible. This change adds pre-checks and detailed logging to help users identify the actual cause, such as an incorrect container name or a non-running container.


Open in Cursor Open in Web


🔄 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/0xJacky/nginx-ui/pull/1552 **Author:** [@0xJacky](https://github.com/0xJacky) **Created:** 2/8/2026 **Status:** 🔄 Open **Base:** `dev` ← **Head:** `cursor/docker-api-stat-path-27ca` --- ### 📝 Commits (1) - [`0ee88d8`](https://github.com/0xJacky/nginx-ui/commit/0ee88d8429ffe459148aaea04294f6eb28caf72c) fix: improve Docker StatPath with better error diagnostics ### 📊 Changes **1 file changed** (+33 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `internal/docker/stat_path.go` (+33 -2) </details> ### 📄 Description Improve Docker `StatPath` error messages to better diagnose container not found issues. The previous 404 "API route and version" error was misleading. The Docker API version negotiation was working correctly, but the daemon returned 404 because the specified container was not found or accessible. This change adds pre-checks and detailed logging to help users identify the actual cause, such as an incorrect container name or a non-running container. --- <p><a href="https://cursor.com/background-agent?bcId=bc-79053a7d-ca28-4056-84ee-c1cd6a837c68"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img alt="Open in Cursor" width="131" height="28" src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a>&nbsp;<a href="https://cursor.com/agents?id=bc-79053a7d-ca28-4056-84ee-c1cd6a837c68"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-web-light.png"><img alt="Open in Web" width="114" height="28" src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a></p> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-ui#1339
No description provided.