Skip to content

createTeams function giving nil pointer deference error in cli #81

@rizul2108

Description

@rizul2108

createTeams function is giving nil pointer deference error at below point on using in cli : https://github.com/sdslabs/katana/blob/3b3c2e1feb793b56298691c2fae9b18b6c19ba26/lib/mongo/create.go#L19C43-L19C43
Probably the issue is because of context as earlier the context.Background() uses the context of fiber that is used to make server and handle requests but cli doesn't require fiber so that may be the issue
I tried replacing context.Background() with context.TODO() (context.TODO() is just a spacefiller when the context doesn't have any specific role to play ) but that also didn't solve the issue.
PR containing code for cli : #79

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions