NetBox 3.5 RSS widget error #7796

Closed
opened 2025-12-29 20:28:19 +01:00 by adam · 2 comments
Owner

Originally created by @ryanmerolle on GitHub (Mar 26, 2023).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.5.0-dev

Python version

3.8

Steps to Reproduce

  1. click on create a widget
  2. enter a url for the rss feed that is not a proper rss link
  3. dashboard becomes unusable and presents the user with the following an error every time you browse to it.

Expected Behavior

better error handling for rss widget

Observed Behavior

<class 'ValueError'>

I/O operation on closed file.

I can add more details if needed, I just hit the issue and wanted to add something for now.

Originally created by @ryanmerolle on GitHub (Mar 26, 2023). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.5.0-dev ### Python version 3.8 ### Steps to Reproduce 1. click on create a widget 2. enter a url for the rss feed that is not a proper rss link 3. dashboard becomes unusable and presents the user with the following an error every time you browse to it. ### Expected Behavior better error handling for rss widget ### Observed Behavior ``` <class 'ValueError'> I/O operation on closed file. ``` I can add more details if needed, I just hit the issue and wanted to add something for now.
adam added the type: bugbetatopic: UI/UX labels 2025-12-29 20:28:19 +01:00
adam closed this issue 2025-12-29 20:28:19 +01:00
Author
Owner

@kkthxbye-code commented on GitHub (Mar 26, 2023):

Something like this works, but not sure if why it's actually failing to pickle the object:

if not feed['entries'] or feed.status != 200:
    return None

Here:

37aa07eea1/netbox/extras/dashboard/widgets.py (L201)

@kkthxbye-code commented on GitHub (Mar 26, 2023): Something like this works, but not sure if why it's actually failing to pickle the object: ```python if not feed['entries'] or feed.status != 200: return None ``` Here: https://github.com/netbox-community/netbox/blob/37aa07eea195bbba6c6f9f43a3c9d10329e38a9d/netbox/extras/dashboard/widgets.py#L201
Author
Owner

@jeremystretch commented on GitHub (Mar 27, 2023):

Fixed in 669cfe895

@jeremystretch commented on GitHub (Mar 27, 2023): Fixed in 669cfe895
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7796