Database broken after using API #17434
Replies: 5 comments 1 reply
-
See here |
Beta Was this translation helpful? Give feedback.
-
Hello quantum909, Thank you for your message and pointing me this issue #17401 Indeed, I upgraded to 4.1.0 from 4.0.11 but then moved back to 4.0.11. It seemed to me that I did and action through API that caused this. |
Beta Was this translation helpful? Give feedback.
-
Did you tryed this |
Beta Was this translation helpful? Give feedback.
-
Hello quantum909, I use Postgresql 16.4 and python 3.10.14 |
Beta Was this translation helpful? Give feedback.
-
Hello, |
Beta Was this translation helpful? Give feedback.
-
Deployment Type
Self-hosted
NetBox Version
v4.0.11
Python Version
3.10.14
Postgresql Version
16.4
Steps to Reproduce
Not known yet
Expected Behavior
Netbox to work normally
Observed Behavior
Hello I messed up using API,
I was trying to add a new platform like this
PUT $data = '{ "name": "' . "SOMENAME .'", "slug": "' . "somename" .'", "manufacturer": 1, "description": "' . "somedesc" . '" }';
or
$data = '{ "name": "' . "SOMENAME" .'", "slug": "' . "somename" .'", "manufacturer": { "id": ' . "1" . ' }, "description": "' . "somedesc" . '" }';
Now I see this message when I want to add a new platform or manufacturer
python3 manage.py migrate didn't help
I think it's not normal that I broke the database structure using APIs
Also how can I fix it ?
Beta Was this translation helpful? Give feedback.
All reactions