question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

File upload never ends?

See original GitHub issue

On MacOSX with Docker and the following versions of relevant libraries:

channels==2.0.2
Django==2.0.2
djangorestframework==3.7.7
daphne==2.0.3
asgiref==2.1.6

(I also tried a pip install -U -r requirements.txt to try and catch any new versions, believe I did that properly and didn’t see any available upgrades)

I found this thread with a similar problem #753 and the problem seems to have been solved, but I experience a successful POST + upload with no response from the server (it just perpetually hangs).

django_1          | [2018/02/22 04:54:16] HTTP GET /api/submissions/ 200 [0.11, 172.19.0.1:57416]
django_1          | 2018-02-22 04:54:26,527 - WARNING - server - Application instance 
<Task pending coro=<AsgiHandler.__call__() running at /usr/local/lib/python3.6/site-packages/channels/http.py:191> 
wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at /usr/local/lib/python3.6/asyncio/futures.py:403, <TaskWakeupMethWrapper object at 0x7fe1ac309b58>()]>> 
for connection <WebRequest at 0x7fe1ac305588 method=POST uri=/api/submissions/ clientproto=HTTP/1.1> took too long to shut down and was killed.

What is so confusing is that everything seems to work fine, but I just don’t get a response. The object is created, the file is successfully uploaded…

A little unsure how best to debug this, not very familiar with ASGI/async/channels. Would appreciate a push in the right direction and I apologize if this issue is too vague

Everything else about channels seems to be working swell, don’t mean to sound ungrateful! Thanks so much for releasing this and all the hard work 😃

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
Rubyjcommented, May 29, 2019

@andrewgodwin any update on this issue?

0reactions
fupydevcommented, Nov 16, 2020

Currently experienced same issue with:

channels==2.1.7
channels-redis==2.3.3
Django==2.1.4
django-cors-headers==2.4.0
django-filter==2.1.0
django-model-utils==3.1.2
django-nose==1.4.6
djangorestframework==3.9.0
djangorestframework-simplejwt==3.3
djangorestframework-stubs==0.2.0

File loaded successfully but server freezesserver messege: Application instance <Task pending coro=<AsgiHandler.__call__() running at /home/oprimov/v_envs/sentry_env/lib/python3.6/site-packages/channels/http.py:213> wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at /usr/lib/python3.6/asyncio/futures.py:403, <TaskWakeupMethWrapper object at 0x7f4ffffe89d8>()]>> for connection <WebRequest at 0x7f4fff7a8358 method=POST uri=/admin/tasks/task/1/change/ clientproto=HTTP/1.1> took too long to shut down and was killed. @andrewgodwin any update on this issue? workarounds?

@fupydev , did you manage to fix this problem?

@ThreshHNS no, at that time just I found this (but not checked it): https://stackoverflow.com/questions/56049194/error-handling-post-request-in-django-and-getting-too-long-to-shutdown-and-was

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why Google Drive Upload Stuck? Solved with 10 Ways
Google Drive "Waiting to upload" stuck in the process of storing files. But these methods can be effectively solved. Method 1. Clear cache....
Read more >
Google drive never ends file uploading
I am using google drive desktop version in windows. Last week I'm trying to up upload a folder Size 1.3GB file contains 6,228....
Read more >
Retrofit 2: File upload never finishes - Stack Overflow
I am trying to upload an arbitrary number of files to a server. When I run the request it just does some work...
Read more >
iCloud for Mac is stuck on "waiting to upload" - Apple Developer
When you sync your desktop/documents folders with iCloud at random moments it gets stuck and never finish uploading. The folder says "waiting to...
Read more >
My video small never finishes uploading. - Dropbox Community
I recommend that you try the newest stable build (offline installer) vs any beta versions that are available (v48.3.57). After installing it, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found