hey <@498057949541826571> , i am getting error while creating a session,
s
hey @rp_st , i am getting error while creating a session,
r
are you calling the createNewSession function manually? What framework are you using? And how are you calling the code?
s
i am using nestjs,
yes calling it manually
r
are you using express with nestjs?
s
yes
r
can you check if
req
or
res
thats being passed to createNewSession is null or undefined right before you call createNewSession?
s
it is null
r
right.. thats the problem
you can't pass in null
s
what are the things we can pass in ? sorry for the sill qn
r
the request and response object
s
thanks
also what header could be set ?