jumpserver 3.10 api post /assert/hosts添加主机报错

File “/opt/py3/lib/python3.11/site-packages/django/http/request.py”, line 527, in _assert_mutable
raise AttributeError(“This QueryDict instance is immutable”)
AttributeError: This QueryDict instance is immutable

到api文档那边测试一下


还是不行 有示例代码吗

解决了 request post 参数data 要转json后传才可以 直接传{}字典会报错

1 个赞