I am trying to delete a document.
this is the code:
database.delete_document(database_id, tag_collection_id, to_delete_id)
The document is deleted correctly, but the function throws the following exception: KeyError('content-type')
. Digging into the sdk with a debugger, it looks like the response of the server does not include 'content-type' in the header, while the request library expects it to be there. Any idea why?
TL;DR
Developers facing KeyError('content-type') exception when deleting a document using Python SDK. SDK throws this error due to missing 'content-type' in the server response headers while the request library expects it. This mismatch causes the exception. To resolve, modify the library or response handling to accommodate this discrepancy.