Hmm, it's possible the 0.x series didn't have response streaming for files so there'd be a limit, but I honestly can't remember, that was years ago. There's really not much I can do other than recommending an upgrade to something vaguely recent.
Also make sure Heroku is not cutting you off with a request timeout or something. Andrew On Tue, Oct 23, 2018 at 5:38 AM Chris <ch...@otree.org> wrote: > I use Channels & websockets for my webapp's "export data" functionality, > since it can take a long time to generate the file (more than 30 seconds). > In general this works fine, even for large downloads (several MB), but I > have seen several cases on Heroku where the browser never receives the > message with the file, even though debugging shows that > JsonWebsocketConsumer.send was called as expected. > > I found this Github issue <https://github.com/django/channels/issues/11> that > says the message limit is 1 MB (or maybe 256 kb). My questions: > > - Where is this limit defined? I searched the source of Channels and > Daphne. I'm trying to figure out where the failure is happening -- in the > worker, Daphne, or Redis. > - What happens if the limit is exceeded? Is an exception raised? (Because > in my case it fails silently.) > - Is there really a 1 MB limit? Because it seems I have been able to send > files larger than that using channels/asgi_redis (unfortunately I'm still > on channels 0.17.3, can't upgrade yet because of a Twisted bug). > > Thanks! > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/da8fc1ab-8a75-4504-ab3a-6ab31cfd132e%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/da8fc1ab-8a75-4504-ab3a-6ab31cfd132e%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFwN1up4d8i%3DC-t2T_AYqmPYAsaQvNPjqCvn1MHJdwakfJvtNQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.