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

Resolve an issue when attempting to call decode() on a streamed/potentially temporarily invalid utf-8 string. #216

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

blahblahasdf
Copy link
Contributor

Reference Issues/PRs

Fixes #215

What does this implement/fix? Explain your changes.

Instead of accumulating the exec_result as the content is streamed back from the container as a utf-8 decoded string store it as bytes and decode only when returning the results.

Any other comments?

@john-b-yang
Copy link
Collaborator

john-b-yang commented Sep 3, 2024

Thanks for this change @blahblahasdf + @klieret for approving! Merging this edit.

@john-b-yang john-b-yang merged commit 7470f5f into princeton-nlp:main Sep 3, 2024
1 check passed
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.

UnicodeDecodeError when running gold patch for django__django-14011 in the dockerized harness
3 participants