Skip to content

Conversation

aubford
Copy link
Contributor

@aubford aubford commented Mar 17, 2025

Without this I get exceptions due to right quotes not being encoded correctly.

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Mar 17, 2025
response = requests.post(
f"{base_url}/api/v1{path}",
data=data_json_string,
data=data_json_string.encode('utf-8'),
Copy link
Contributor

Choose a reason for hiding this comment

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

The change may fix UTF-8 encoding issues but introduces potential runtime errors if data_json_string isn't always a string type.

Consider adding a type checking:

data=data_json_string.encode('utf-8') if isinstance(data_json_string, str) else data_json_string,

something like that.

@anistark anistark added the blocked Blocked on further action label Aug 28, 2025
@anistark
Copy link
Contributor

Closing as we don't have upload_packet function anymore.

@anistark anistark closed this Sep 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Blocked on further action size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants