All Onshape clients for interacting with the Onshape API.
MIT License
32
stars
26
forks
source link
"UnicodeDecodeError: 'utf-8' codec can't decode byte 0xed in position 47: invalid continuation byte" when trying to download obj from /api/documents/d/did/externaldata/fid #83
As the title states, when I am trying to download an obj file from the /api/documents/d/did/externaldata/fid endpoint, I get a "UnicodeDecodeError: 'utf-8' codec can't decode byte 0xed in position 47: invalid continuation byte" error.
My current fix for this is to literally just comment out the two lines of code that decode the response but I was wondering if this is an actual issue or if I'm doing something wrong.
As the title states, when I am trying to download an obj file from the /api/documents/d/did/externaldata/fid endpoint, I get a "UnicodeDecodeError: 'utf-8' codec can't decode byte 0xed in position 47: invalid continuation byte" error.
My current fix for this is to literally just comment out the two lines of code that decode the response but I was wondering if this is an actual issue or if I'm doing something wrong.
The function that I've written, for reference: