-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError at /api/extras/scripts/8/ can't set attribute 'result' #16123
Comments
Hi, additional info. Reverted to v3.5.4 and did the upgrade again 3.7.7 -> works |
As provided in #16129 this also breaks the usage of using the script names in the url. And does not reflect in the documentation about custom scripts. |
Hi, Is it normal behavior that "https://netbox-test/api/extras/scripts/scriptA.class" still does not work? Field 'id' expected a number but got with id it does work. |
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: