Skip to content
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

TypeError: WebSocketHandler.init() missing 2 required positional arguments: 'application' and 'request' #3373

Open
xiaochenJCC opened this issue Apr 27, 2024 · 3 comments

Comments

@xiaochenJCC
Copy link

use source code, cause TypeError: WebSocketHandler.init() missing 2 required positional arguments: 'application' and 'request'. Try to remove file (web.py)'s code line super().__init__() in RequestHandler.init(), it runs ok. puzzled :(

@bdarnell
Copy link
Member

It sounds like you may be inheriting from both WebSocketHandler and RequestHandler (perhaps indirectly). I've never tried that and I'm not sure if it would work or not. It might be sensitive to the order of your base classes.

@bees4ever
Copy link

please fix it

@bdarnell
Copy link
Member

bdarnell commented Aug 7, 2024

Fix what, exactly? There's not enough information here for me to tell what's going on. Can you provide a complete example of how you're using WebSocketHandler that demonstrates the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants