I’m trying to use a Azure SQL database for custom login data. After selecting the template for SQL Server - and editing the script - the following code is not working (e.g. create script):
It seems the tedious library is the reason, but I’m not sure. And it was not possible for me to find a solution.
Is there a chance to let Auth0 API work together with Azure SQL?
No chance, for me it was not possible to get data from Azure SQL database (GetUser scrip). Connection works now, but reading query result not.
Based on SQL Server template the result row is not readable (empty), although row count is 1. Following message comes up:
Is anybody here with same environment (simple Azure SQL database, no AD) and a really working GetUser script?
And before questions comes: I do not have defined any hook or rule.
Thanks for the quick reply it’s working fine. i need one more help. what about create. I’m getting the error when I’m calling create event
10:37:16 PM:
{
"code": 500,
"error": "Script generated an unhandled asynchronous exception.",
"details": "Error: No event 'socketConnect' in state 'SentPrelogin'",
"name": "Error",
"message": "No event 'socketConnect' in state 'SentPrelogin'",
"stack": "Error: No event 'socketConnect' in state 'SentPrelogin'\n at Connection.dispatchEvent (/data/_verquire/_node16/tedious/1.11.0/node_modules/tedious/lib/connection.js:754:26)\n at Connection.socketConnect (/data/_verquire/_node16/tedious/1.11.0/node_modules/tedious/lib/connection.js:777:17)\n at Socket.<anonymous> (/data/_verquire/_node16/tedious/1.11.0/node_modules/tedious/lib/connection.js:3:59)\n at Socket.emit (node:events:539:35)\n at Socket.emit (node:domain:537:15)\n at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1173:10)\n at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17)"
}
10:37:16 PM:
finished webtask request
10:37:16 PM:
Code generated an uncaught exception: Error: No event 'socketConnect' in state 'SentPrelogin'
at Connection.dispatchEvent (/data/_verquire/_node16/tedious/1.11.0/node_modules/tedious/lib/connection.js:754:26)
at Connection.socketConnect (/data/_verquire/_node16/tedious/1.11.0/node_modules/tedious/lib/connection.js:777:17)
at Socket.<anonymous> (/data/_verquire/_node16/tedious/1.11.0/node_modules/tedious/lib/connection.js:3:59)
at Socket.emit (node:events:539:35)
at Socket.emit (node:domain:537:15)
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1173:10)
at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17)
it’s long back i forget. if i got any will ping you. @Softwerker04 if you that impl could you please provide here. that will really help full for future. Thanks