[PR #13953] [CLOSED] Improved error message #14290

Closed
opened 2025-12-29 23:23:37 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/13953
Author: @adhoniran
Created: 10/3/2023
Status: Closed

Base: developHead: develop


📝 Commits (4)

  • 17474b0 Improved error message
  • d42a428 Improved error message
  • 845c431 Removed exception variable assignment into get_feed()
  • 034d137 Enhanced error handling for HTTP requests

📊 Changes

1 file changed (+17 additions, -1 deletions)

View changed files

📝 netbox/extras/dashboard/widgets.py (+17 -1)

📄 Description

Fixes: #13956

Improved error handling in the get_feed() method to provide a more descriptive error message when NetBox is unable to connect to the feed server. Instead of returning the original exception, we now return a custom error message for better clarity and security.

Changing the error message when NetBox is unable to connect to feed server to 'NetBox is unable to connect to feed server...', instead to show the error exception variable content


🔄 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/netbox-community/netbox/pull/13953 **Author:** [@adhoniran](https://github.com/adhoniran) **Created:** 10/3/2023 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `develop` --- ### 📝 Commits (4) - [`17474b0`](https://github.com/netbox-community/netbox/commit/17474b0033dc56724e744b83562aea7651ad2c80) Improved error message - [`d42a428`](https://github.com/netbox-community/netbox/commit/d42a428d66cc6b4769bb0531861bf8540599f653) Improved error message - [`845c431`](https://github.com/netbox-community/netbox/commit/845c43185c80d65c4b0606fe97c1c929103847f8) Removed exception variable assignment into get_feed() - [`034d137`](https://github.com/netbox-community/netbox/commit/034d1373d70f9c2bee20fbaffe3786b4f87273ae) Enhanced error handling for HTTP requests ### 📊 Changes **1 file changed** (+17 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `netbox/extras/dashboard/widgets.py` (+17 -1) </details> ### 📄 Description ### Fixes: #13956 Improved error handling in the get_feed() method to provide a more descriptive error message when NetBox is unable to connect to the feed server. Instead of returning the original exception, we now return a custom error message for better clarity and security. Changing the error message when NetBox is unable to connect to feed server to 'NetBox is unable to connect to feed server...', instead to show the error exception variable content --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 23:23:37 +01:00
adam closed this issue 2025-12-29 23:23:37 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14290