Help: TypeError: __call__() missing 2 required positional arguments: 'receive' and 'send'
See original GitHub issueHi there,
I’m seeing the following error when utilizing this library with a Hypercorn server.
On project startup, I am seeing this error:
TypeError: __call__() missing 2 required positional arguments: 'receive' and 'send'
I can’t see exactly why this error is occurring, or what I have done wrong in my config setup…
return self.application_mapping[scope["type"]](scope)
web_1 | TypeError: __call__() missing 2 required positional arguments: 'receive' and 'send'
Relevant requirements.txt details:
channels==2.4.0
Django==3.1.4
django-channels-graphql-ws==0.7.5
Hypercorn==0.11.1
websockets==8.1
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Django Channel Custom Authentication Middleware __call__ ...
I got an error 2 positional argument missing receive and send. Traceback (most recent call last): File "D:\Project\IQ ...
Read more >runtime error TypeError: __call__() missing 2 required ...
when i add 'channels' in installed apps then call view i got TypeError: call() missing 2 required positional arguments: 'receive' and 'send'
Read more >[PYTHON] _bind_receive_send() missing 2 required ...
_bind_receive_send() missing 2 required positional arguments: 'receive' and 'send'. What can go wrong? I am using daphne==3.0.2 and newrelic==6.8.1.164.
Read more >TypeError: missing 2 required positional arguments (Python)
The Python "TypeError: missing 2 required positional arguments" occurs when we forget to provide 2 required arguments when calling a function or method....
Read more >tiangolo/fastapi - Gitter
TypeError : call() missing 2 required positional arguments: 'receive' and 'send' INFO: ('127.0.0.1', 38604) - "GET /api/v1/docs HTTP/1.1" 500.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Update: this seems to be an issue with the required version of channels for this package. I forced an update to channels 3, and things seem to be working.
I suppose with an update to Channels 3 in v0.8.0 this should be addressed. Closing this. Feel free to reopen if the issue persists.