You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: