Closed devjmetivier closed 11 months ago
Thanks for reporting.
Most notably it seems as though this was working for us last week, and when we picked up the project again (without code changes) the SDK stopped working.
Did you update our SDK to a newer version ? If not, and you say it worked before, what changed between now and then? There has to be something, and typically isn't an SDK issue in that case. If you did update our SDK, does rollbacking resolve the issue again?
Does any error show up in your Auth0 logs?
Another thing to note is that the SDK mysteriously logs null to the console for some reason. I double checked and we're not logging that anywhere in code.
We dont appear to be logging anything ourselves neither. Can you elaborate on why you believe it's our SDK logging that null?
@frederikprijck
Did you update our SDK to a newer version?
This is a fresh project (bare bones if you will), we started with v4.0.1
(latest as of this issue).
If not, and you say it worked before, what changed between now and then? There has to be something, and typically isn't an SDK issue in that case.
Normally I would agree, but as I said, there were no code changes between the time it was first successful and when we picked it back up.
If you did update our SDK, does rollbacking resolve the issue again?
v4.0.0 yields the same issue, but previous versions otherwise are irrelevant because it's not the same API
Does any error show up in your Auth0 logs?
Yes. And it's the exact same error that it gives in the console (which isn't helpful):
We dont appear to be logging anything ourselves neither. Can you elaborate on why you believe it's our SDK logging that null?
I also checked the SDK code to see if this was the case and found the same. However, I can't explain why null
is printed to the console on a separate line there. When removing all manual logs in the application, it still produces that log. I thought maybe it could be a log from a different package but it only occurs inexplicably when I get this error.
Another thing that might be helpful is that according to my first screenshot here, it's indicating that this is a parsing error:
Thanks for that context, it looks like the error is outside of the SDK but on the server side. I reached out internally to see what could cause that.
I haven't been able to reproduce this on my end. Could you verify if you have any actions (or rules) configured? If so, would the error still exist if you disable those?
If this still occurs without any rule or action, could you share your tenant so we can more easily investigate what could be going on?
@frederikprijck This must've been a case of poor timing on our end. The issue was, in fact, a result of a faulty Auth0 Rule that we built (and consequently enabled after our first pass with the new node SDK, thus breaking what we wrote initially).
Thank you for your time.
Checklist
Description
Trying to go through a simple passwordless flow and keep getting this error:
This error is not specific to any one cause. To my knowledge, all of our Auth0 configurations are correct, and all environment configurations in code are correct as well. Most notably it seems as though this was working for us last week, and when we picked up the project again (without code changes) the SDK stopped working.
Some code detailing our implementation:
Nothing out of the ordinary to us.
Reproduction
Applications > Applications
Applications > APIs
AuthenticationClient
with thedomain
,clientId
, andclientSecret
from the above created Auth0 Applicationauth0.passwordless.sendEmail({ email, send: 'code' })
auth0.passwordless.loginWithEmail(...options)
Additional context
Another thing to note is that the SDK mysteriously logs
null
to the console for some reason. I double checked and we're not logging that anywhere in code.node-auth0 version
v4.0.1
Node.js version
v18.15.0