How to capture exception information in a hook for further investigation?

Hello,

Please consider the following scenario.
I have an “Client Credentials Exchange” hook. If an unhandled exception happens I return the result as follows without revealing the details of the error to the client:
return cb(new Error(‘SomeDescription’));

From the other hand, I as administrator need to understand what was the cause of the error (ideally see exception message and stacktrace). Currently, the log entry description looks like follows: “ExtensibilityLogicError on credentials-exchange: SomeDescription.” which is not very informative.

Using Real-Time Logs extension can be used only if the issue is reproducible at the moment and is not helpful for intermittent problems.

Could you please let me know if there are any ways to write custom entries to the Auth0 logs or if you have other suggestion how to address this?

Thanks in advance!

Best regards,
Sergey

Previous message deleted due to SPAM reasons.

Hey there!

As this topic is related to Rules - Hooks - Actions and Rules & Hooks are being deprecated soon I’m excited to let you know about our next Ask me Anything session in the Forum on Thursday, January 18 with the Rules, Hooks and Actions team on Rules & Hooks and why Actions matter! Submit your questions in the thread above and our esteemed product experts will provide written answers on January 18. Find out more about Rules & Hooks and why Actions matter! Can’t wait to see you there!

Learn more here!