Hey :wave:, I'm seeing persistent issues with the ...
# ask-a-descoper
n
Hey 👋, I'm seeing persistent issues with the
SignUpOrInFlow
widget from the NextJS SDK, I'm attaching data from my observability dashboards from the last 1 week in production. Two other anecdotes which may be important: • There seems to be a high correlation between these errors and Mobile usage (and that's also something that was reported by our users) • I'm passing
onError
handler prop to the widget component, however it seems the widget mostly ignores this option and throws/logs errors outside of this onError context. At least from my perspective, I would expect that if I pass
onError
prop, anything error-related will pass by it and won't necessarily just be logged to console or thrown. Attaching an image to show how we use it and the only thing that came up this week in the custom issue recorder. Are we using it wrong / is there anything we're missing? This is a pretty high severity issue from our side because we're dependent on this flow and we would rather stay with the widget and not implement our own sign-in page against the sdk api for now. I would also gladly help with debugging if it helps and can share other data that could be relevant to you. Thanks in advance!
r
Hey, just to be clear - are your users access your via the web browser on mobile? is the file attached reflects the uncatched errrors?
n
1. Some users access from mobile, yes, not all 2. The files attached are exports from my datadog widgets. the first one has errors of datadog type "console" meaning
console.error
, which I can say for sure are descope related because we have a lint rule against using console.error. The second are of datadog type "source", which are uncaught javascript exceptions
r
these errors seems to be related to the pre-load of the descope flow. e.g. fetching the components and versioning. the root cause can be related to a lot of things such as network issues, lazy loading, some even look like configuration issues. the
onError
hook is there to catch the errors that happen on the flow itself and after it loads succesfully. So AFAIK we cannot add these to be catched with the
onError
any reason why this is a blocker for you?
n
not a blocker per say, just high severity issue since our customers have been reporting this issue and we want to be able to fix it so they don't have any issues logging in to our system
r
Ok so to get to the root cause, we need some more information, such as reproduction steps and possibly a HAR file. As I mentioned before because of the nature of this error, could be related to specific network or configuration issues. So in order to take responsibility that this issue is related to the SDK, we need somehow to reproduce