Closed
Description
It looks like the RUST SDK expects the content-location header to be present in the responses from Azure CosmosDB (documentclient APIs). SDK returns an error if this header is not present. Please note that content-location is not listed in the Common Azure CosmosDB Response headers Common response headers - Azure Cosmos DB REST API | Microsoft Docs. Hence taking dependency on this header is not a supported scenario.
Azure CosmosDB service is not returning this header in the newer versions of the gateway. Hence please fix the SDK to remove dependency on this header.
let resp = match document_client
.get_document()
.execute::<D>()
.await
.map_err(into_cosmos_error("Could not get document")) {
Ok(response) => response,
Err(err) => {
println!("XRAY");
return Err(err);
}
};
Error: "content-location" is not found in headers.
Metadata
Metadata
Assignees
Labels
No labels