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

MultiPart, file, got error "TypeError: sequence item 0: expected a bytes-like object, str found" #28

Open
VDShark opened this issue Apr 17, 2018 · 2 comments

Comments

@VDShark
Copy link

VDShark commented Apr 17, 2018

Hi there.
Are you testing file proxying?

I'm faced with this error.
I'm little diving in the problem, and found this place:
rest_framework_proxy/utils.py:61

return b'\r\n'.join(output)

Maybe I don't understand something, but output contains strings => we got this error.

P.S. Also, there is something strange with package releases. In pypi actual version 1.6, but in this repo I see 1.4 as latest.

@mirekys
Copy link

mirekys commented Nov 20, 2018

Hi, I can confirm this error happening on Python 3.7 and DRF proxy 1.6 as you are trying to join string mode list with bytes. Should be encoded like in #26.

@Shehab-Muhammad
Copy link

there's no release for that fix!
please fix this it's critical issue

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

No branches or pull requests

3 participants