Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot connect to Azure database #699

Open
gnotisauton opened this issue Feb 25, 2022 · 4 comments
Open

cannot connect to Azure database #699

gnotisauton opened this issue Feb 25, 2022 · 4 comments

Comments

@gnotisauton
Copy link

When adding a connection to an Azure database (MSSQL connector) and connecting using SQL login and SSL, I get the following error:

Error invoking remote method 'DB_CONNECT': TypeError: Cannot read property '1' of null

Connection is successful (confirming server address, port, SSL setting) because switching to a wrong password results in the appropriate login rejection message and failed login log entry on the SQL server; using the correct password generates the above message.

Database/Schema are correct. Changing them results in the appropriate login failure message.

This bug was not present in v1.32.1, was introduced in v1.33.0, and has persisted since.
I have been able to reproduce this bug on macOS and Windows, haven't tested other OSes.

@sixeyed
Copy link

sixeyed commented Mar 23, 2022

Confirmed still present in 1.37.1, reverting to 1.32.1 fixes it. There's nothing very helpful in the Dev Tools logs, but if you can point me in the right direction I'll be happy to debug the issue.

@gnotisauton
Copy link
Author

gnotisauton commented Jan 23, 2023

I'm teaching again, so I checked for a resolution again. The bug is still present in v1.38

After a bit of digging, I expect there's small differences between Azure SQL DB and Microsoft SQL Server (e.g. a database user cannot list all databases on a server). Maybe Azure SQL DB needs its own adapter in sqlectron-db-core, or some error checking would need to be introduced to work around the differences :/.

I'd be happy to provide access to an Azure SQL DB instance for testing purposes. I'd gladly help in any other way as well, I'm just not at all proficient in TypeScript or Electron development, unfortunately.

@ruffin--
Copy link

ruffin-- commented Aug 30, 2024

@gnotisauton Any luck getting this to work outside of 1.32.1?

Hrm, not sure if it's an Apple Silicon issue, but 1.32.1 won't even open on my M1 MacBook Air.

@gnotisauton
Copy link
Author

gnotisauton commented Aug 31, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants