You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to sign SD I've always got an error during the process
'Something went wrong:'
undefined
after a short debugging session i saw that the sign() method did not return the jsw string and the procedure failed without triggering any error/exception. The cause of this behavior is to be found in the scope of the declaration of the variable jws which is inside a try/catch block and when it is returned is no longer valued(=undefined).
The workaround I've adopted to fix the problem is to move the declaration of jws outside the try/catch block.
I hypothesize that this behavior is due to the relatively new version of Node.js (16.16.0) that I have been using lately.
Hope this help.
Regards
Pietro
Environment
OS: Windows 11
Node: 16.16.0
npm: 8.11.0
The text was updated successfully, but these errors were encountered:
Summary
Trying to sign SD I've always got an error during the process
after a short debugging session i saw that the sign() method did not return the jsw string and the procedure failed without triggering any error/exception. The cause of this behavior is to be found in the scope of the declaration of the variable jws which is inside a try/catch block and when it is returned is no longer valued(=undefined).
The workaround I've adopted to fix the problem is to move the declaration of jws outside the try/catch block.
I hypothesize that this behavior is due to the relatively new version of Node.js (16.16.0) that I have been using lately.
Hope this help.
Regards
Pietro
Environment
The text was updated successfully, but these errors were encountered: