strange thing is, that I am using try catch blocks...
# prisma-whats-new
d
strange thing is, that I am using try catch blocks but somehow the error is not captured
s
are you sure the error is happening inside the function you are exporting? maybe the offending code is outside of the function and this is why the error is not captured. This can happen for example if you have errors in your import statements
d
@sbornia thanks for pointing me into this direction, I will look into this
s
@dohomi did you have any luck figuring out what was causing this?
d
@sbornia exactly how you pointed out. I forgot a try catch outside of the resolver itself thats why the error had been swollowed
I re-wrote the authentication into more readable small modules which shares logic in between authenticate, signin, signup and reset password.. now everything works again
s
@dohomi ah cool. I was just asking because I was getting the same error message earlier today but it was caused by this issue: https://github.com/graphcool/framework/issues/1359
d
let me check I think I received it because a synchronous function was not captured, I changed it to async and rejected on error and it worked fine
I commented on the issue
I had a synchronous call for jwt token signs.. it was definitely some code which needed to be async instead of sync