Skip to content

TypeError: outgoing() takes 2 positional argument but 3 were given #11

@n4arora

Description

@n4arora

Hi,

I'm not too much familiar with Python or cometD but I was trying my way out and when trying to implement the AuthExtension, for the outgoing function I'm getting this type error

TypeError: outgoing() takes 2 positional argument but 3 were given

Here is the code for that class

`class MyAuthExtension(AuthExtension):

async def incoming(payload, headers=None):
    pass

async def outgoing(payload, headers):
    pass    

async def authenticate():
    return <SOME_VALUE>`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions