Skip to content

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

@vamshi-namilikonda

Description

@vamshi-namilikonda

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions