Skip to content

Content-Length Header missing from response #42

Open
@kylebarron

Description

@kylebarron

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions