I was debugging some overture GeoParquet data fetching with @Bonkles and we were running into some exceptions saying
Content-Length Header missing from response
This seems to be coming from here
|
#[snafu(display("Content-Length Header missing from response"))] |
|
MissingContentLength, |
and in turn here
|
let content_length = headers |
|
.get(CONTENT_LENGTH) |
|
.context(MissingContentLengthSnafu)?; |
and in turn here
|
let meta = |
|
header_meta(location, response.headers(), InnerClient::HEADER_CONFIG).map_err(|e| { |
|
Error::Generic { |
|
store: InnerClient::STORE, |
|
source: Box::new(e), |
|
} |
|
})?; |
This is coming from this line of code in geoarrow-rs
https://github.com/geoarrow/geoarrow-rs/blob/2a7f150fe7f1502987f191370730770883af33db/js/src/io/parquet/async.rs#L178-L182
So it seems that HEAD requests are somehow missing some headers?
I was debugging some overture GeoParquet data fetching with @Bonkles and we were running into some exceptions saying
This seems to be coming from here
object-store-wasm/src/http/mod.rs
Lines 52 to 53 in 8d825bb
and in turn here
object-store-wasm/src/http/mod.rs
Lines 95 to 97 in 8d825bb
and in turn here
object-store-wasm/src/http/mod.rs
Lines 227 to 233 in 8d825bb
This is coming from this line of code in geoarrow-rs
https://github.com/geoarrow/geoarrow-rs/blob/2a7f150fe7f1502987f191370730770883af33db/js/src/io/parquet/async.rs#L178-L182
So it seems that HEAD requests are somehow missing some headers?