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

createTeams function giving nil pointer deference error in cli #81

Open
rizul2108 opened this issue Dec 21, 2023 · 0 comments
Open

createTeams function giving nil pointer deference error in cli #81

rizul2108 opened this issue Dec 21, 2023 · 0 comments

Comments

@rizul2108
Copy link
Member

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

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

No branches or pull requests

1 participant