AttributeError at /api/extras/scripts/8/ can't set attribute 'result' #16123
Labels
severity: medium
Results in substantial degraded or broken functionality for specfic workflows
status: accepted
This issue has been accepted for implementation
type: bug
A confirmed report of unexpected behavior in the application
Deployment Type
Self-hosted
NetBox Version
v4.0.1
Python Version
3.10
Steps to Reproduce
following:
https://docs.netbox.dev/en/stable/customization/custom-scripts/
curl -X POST -H "Authorization: Token $MY_TOKEN" -H "Content-Type: application/json" -H "Accept: application/json; indent=4" https://netbox-test/api/extras/scripts/8/ --data '{"da
ta": {"foo": "somevalue", "bar": 123}, "commit": true}'
I get the error
AttributeError at /api/extras/scripts/8/
can't set attribute 'result'
Additional question: in the past I could run the script with "https://netbox-test/api/extras/scripts/scriptA.class"
This does not work anymore and I need an ID ;(
PS: upgraded from v3.5.4 -> 3.7.7 -> 4.0.0 -> 4.0.1
Expected Behavior
script is executed successfully
(via gui it does work
Observed Behavior
AttributeError: can't set attribute 'result'
The text was updated successfully, but these errors were encountered: