Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: requester pays #81

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

WIP: requester pays #81

wants to merge 1 commit into from

Conversation

kylebarron
Copy link
Member

@kylebarron kylebarron commented Nov 8, 2024

This is failing with

GenericError: Generic S3 error: Error performing list request: Client error with status 403 Forbidden: <?xml version="1.0" encoding="UTF-8"?>
<Error><Code>AccessDenied</Code><Message>There were headers present in the request which were not signed</Message><HeadersNotSigned>x-amz-request-payer</HeadersNotSigned><RequestId>QEA9RD5BETE6BN7E</RequestId><HostId>tfgEYvVBmWEx5EZljTRXuR6S6ocChjas5qF8eXThc0yt6bRyGEJCYjCFJ+/YOvA2Q2DT/NSqBTw=</HostId></Error>

We should open an issue in object_store

Closes #76

Comment on lines +90 to +102
// use pyo3::prelude::*;
// use pyo3::types::PyDict;

// #[pyfunction]
// #[pyo3(signature = (**kwds))]
// fn num_kwds(kwds: Option<&Bound<'_, PyDict>>) -> usize {
// kwds.map_or(0, |dict| dict.len())
// }

// #[pymodule]
// fn module_with_functions(m: &Bound<'_, PyModule>) -> PyResult<()> {
// m.add_function(wrap_pyfunction!(num_kwds, m)?)
// }
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete


impl<'py> FromPyObject<'py> for PyHeaderName {
fn extract_bound(ob: &Bound<'py, PyAny>) -> PyResult<Self> {
// TODO: check that this works on both str and bytes input
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This currently only works on bytes

@kylebarron
Copy link
Member Author

Made an upstream issue in arrow-rs: apache/arrow-rs#6716

@kylebarron
Copy link
Member Author

The upstream PR was now merged! apache/arrow-rs#6768 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support s3 requester pays
1 participant