Help: TypeError: __call__() missing 2 required positional arguments: 'receive' and 'send'

See original GitHub issue

Hi 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:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
avery-lairdcommented, Dec 20, 2020

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.

0reactions
prokhercommented, Feb 11, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

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