Can't read Script stored in GCS bucket in UI from Customization/Scripts/Source section #11921

Closed
opened 2025-12-29 21:51:31 +01:00 by adam · 0 comments
Owner

Originally created by @vamshi-namilikonda on GitHub (Dec 12, 2025).

NetBox Edition

NetBox Community

NetBox Version

v.4.4.2

Python Version

3.10

Steps to Reproduce

  1. Upload script in UI Customization/Scripts/Source section with storage being GoogleCloudStorage.
  2. Run the script uploaded.
  3. Read the script from Customization/Scripts/Source section

Expected Behavior

Should display the script from Customization/Scripts/Source section after being uploaded GoogleCloudStorage.

Observed Behavior

The script is loaded on UI instead throws below issue.

Error during template rendering
In template /opt/netbox/netbox/templates/extras/script/source.html, error at line 8
can't concat str to bytes
Originally created by @vamshi-namilikonda on GitHub (Dec 12, 2025). ### NetBox Edition NetBox Community ### NetBox Version v.4.4.2 ### Python Version 3.10 ### Steps to Reproduce 1. Upload script in UI Customization/Scripts/Source section with storage being GoogleCloudStorage. 2. Run the script uploaded. 3. Read the script from Customization/Scripts/Source section ### Expected Behavior Should display the script from Customization/Scripts/Source section after being uploaded GoogleCloudStorage. ### Observed Behavior The script is loaded on UI instead throws below issue. ``` Error during template rendering In template /opt/netbox/netbox/templates/extras/script/source.html, error at line 8 can't concat str to bytes ```
adam closed this issue 2025-12-29 21:51:31 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11921