-
Notifications
You must be signed in to change notification settings - Fork 25
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
docs/how-to/upload-file: example not working, please assist. #265
Comments
Hi, I think, I found a way ... please check the PR socotecio/django-socio-grpc-example#18 |
Hi @AMontagu and @legau,
... somehow the async streaming connection simply shuts down - the server code is not even executed.... I do not understand, why. I hope, you have some ideas, how to make the connection more stable. (I already tried asyncio.shield, but it did not help). Merci :) |
Hello @markdoerr, I completed the upload exemple on your branch and is working well. Are you uplaoding back to back or front to back ? The cancelled error may happen when:
If you can provide a minimal reproductible repository I may look further on that |
Merci, @AMontagu, |
Hi @AMontagu and @legau,
the file upload example in the how-to is not working:
https://github.com/socotecio/django-socio-grpc/blob/master/docs/how-to/upload-file.rst
read_in_chunks should rather return data (I guess)
and UploadFile() receives a CancelledError.
To reproduce this behaviour, I created an example in a new feature branch (image-upload):
https://github.com/socotecio/django-socio-grpc-example/blob/feature/image-upload/backend/image_upload_client_async.py
Any ideas, why I receive this CancelledError ?
Merci.
The text was updated successfully, but these errors were encountered: