https://supertokens.com/ logo
init issue
d

Dhruv_Vavliya

03/18/2023, 11:15 AM
I implemented userroles recipe, in that getting error.
r

rp

03/18/2023, 11:20 AM
hey @Dhruv_Vavliya
is init being called before the use of the function for sure?
d

Dhruv_Vavliya

03/18/2023, 11:21 AM
yeah i checked, initalization done successfully.
error coming while calling createnewrole function
r

rp

03/18/2023, 11:24 AM
can you do a log right before and after the init call + a log right before calling the function from userroles recipe?
Whats the logging order?
d

Dhruv_Vavliya

03/18/2023, 11:31 AM
this is my initilization function
r

rp

03/18/2023, 11:31 AM
is there an error stack?
d

Dhruv_Vavliya

03/18/2023, 11:33 AM
error stack mean?
r

rp

03/18/2023, 11:34 AM
so you are doing
log.Error(err)
. The
err
object will contain a stacktrace
do you have the stack trace?
d

Dhruv_Vavliya

03/18/2023, 11:35 AM
no
r

rp

03/18/2023, 11:36 AM
right. Can you open an issue about this in our golang repo? Will will have a look soon. Until then, you can query the API for the core directly (the curl command for this is shown in the docs as well)
and @sattvikc can help out
d

Dhruv_Vavliya

03/18/2023, 11:38 AM
Okay.
error solved.
r

rp

03/20/2023, 6:34 AM
oh nice. What was the issue?
d

Dhruv_Vavliya

03/20/2023, 6:34 AM
thanks for your time. some errors were in initialization.
r

rp

03/20/2023, 6:34 AM
i see.
d

Dhruv_Vavliya

03/20/2023, 7:45 AM
because i am running two supertokens on same db for admin and user both