Implement read timeout parameter as it is used in SQL Connector for the loop timeout. Related to #16
Also handle a couple of error I encountered while debugging, so that the loop exits early and print the error to the user (without having to run with TF_LOG=info. Should be helpful for #12 #25 #57
Dumping the logs i had on info level that made me add the extra lines :
failed to connect to database: Received an AuthenticationFailedError, there is an invalid credential in the chain. details: invalid_request AADSTS90002: Tenant '456' not found. Check to make sure you have the correct tenant ID and are signing into the correct cloud. Check with your subscription administrator, this may happen if there are no active subscriptions for the tenant.
failed to connect to database: mssql: login error: Cannot open server '' requested by the login. Client with IP address '' is not allowed to access the server. [...]
failed to connect to database: Chained Token Credential: Azure CLI Credential: exec: "az": executable file not found in $PATH: timestamp=2023-06-19T22:10:20.069Z
Refresh request failed. Status Code = '400'. Response body: {"error":"invalid_request","error_description":"[...]","error_codes":[90002],"error_uri":"https://login.microsoftonline.com/error?code=90002"}
Implement read timeout parameter as it is used in SQL Connector for the loop timeout. Related to #16
Also handle a couple of error I encountered while debugging, so that the loop exits early and print the error to the user (without having to run with
TF_LOG=info
. Should be helpful for #12 #25 #57Dumping the logs i had on info level that made me add the extra lines :
Tests
Compiled with
make build
Installed locally using the following test file
Run with
@magne let me know if that make sense to you