Comparing the API Explorer and the Python implementation I found a different definition for the header accept key:
The API explorer gives:
application/vnd.onshape.v1+json while Python: application/vnd.onshape.v2+json;charset=UTF-8;qs=0.2
Note that v1 vs v2. Changing the Python to match the API explorer I can at least make the call (still need to _preload_content=False to avoid exceptions while parsing
When calling the Python
Assembly.get_features
function, the server returnsComparing the API Explorer and the Python implementation I found a different definition for the header
accept
key: The API explorer gives:application/vnd.onshape.v1+json
while Python:application/vnd.onshape.v2+json;charset=UTF-8;qs=0.2
Note thatv1
vsv2
. Changing the Python to match the API explorer I can at least make the call (still need to_preload_content=False
to avoid exceptions while parsing