We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
_io.BufferedReader
Came across this library when using mlflow.log_artifacts with AWS_SIGV4 request signing enabled. When trying to upload the artifact with a put call, this library throws an exception saying that _io.BufferedReader cannot be encoded. Possible solution (or a better version of it). At line https://github.com/andrewjroth/requests-auth-aws-sigv4/blob/master/requests_auth_aws_sigv4/__init__.py#L141C14-L141C14
mlflow.log_artifacts
if r.body: if isinstance(r.body, bytes): log.debug("Request Body: <bytes> %s", r.body) payload_hash = hashlib.sha256(r.body).hexdigest() elif isinstance(r.body, bytes): log.debug("Request Body: <str> %s", r.body) payload_hash = hashlib.sha256(r.body.encode('utf-8')).hexdigest() else log.debug("Request Body Object's instance type: {type(obj)} ") body_buffer=r.body file_content=body_buffer.read() body_buffer.seek(0) payload_hash = payload_hash = hashlib.sha256(file_content).hexdigest()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Came across this library when using
mlflow.log_artifacts
with AWS_SIGV4 request signing enabled. When trying to upload the artifact with a put call, this library throws an exception saying that_io.BufferedReader
cannot be encoded. Possible solution (or a better version of it).At line https://github.com/andrewjroth/requests-auth-aws-sigv4/blob/master/requests_auth_aws_sigv4/__init__.py#L141C14-L141C14
The text was updated successfully, but these errors were encountered: