microsoft / azuredatastudio-postgresql

azuredatastudio-postgresql is an extension for Azure Data Studio that enables you to work with PostgreSQL databases
Other
192 stars 37 forks source link

Connection Error after update to V0.4.1 #421

Closed mikebuchanon closed 12 months ago

mikebuchanon commented 1 year ago

Azure Data Studio automatically updated to v0.4.1 this morning when I tried to use it to run a query.

Now, all of my previously working connections give this error when I try to connect:

dictionary update sequence element #3 has length 1; 2 is required

I'm on Windows 10 and everything worked just fine on Friday ๐Ÿ˜„ I've tried recreating the connections and uninstalling and reinstalling the extension. Doesn't seem to make a difference.

The developer console looks like this while it's failing: image

workbench.desktop.main.js:893 sure seems to be doing a lot of work there ๐Ÿ˜„

Any help would be greatly appreciated as I use this tool in quite a bit of my daily work ๐Ÿ˜„Thanks!

nasc17 commented 1 year ago

We have published v0.4.2 in ADS Marketplace. Can you please verify if issue is present in new version. If so, for the time being you can download the previous version here.

mikebuchanon commented 1 year ago

Simply updating the extension to the newest version didn't resolve the existing issue. However after the update I was able to recreate my connections and the recreated connections appear to work. So, this may have helped, but folks with older saved connections might need to recreate them. Thanks for the help and the quick turn around on the newer version!

Skymogul commented 1 year ago

Same issue even after completely uninstalling Data Studio and reinstalling, verifying 0.4.2 extension version, and removing and re-creating extensions. Used to work fine for me (and other on my team) as well and broke after update.

nasc17 commented 1 year ago

@Skymogul can you please inform us the platform and pg version you are using.

mariostrd commented 1 year ago

Same error here as well. Tried recreating and reinstalling, but not working. Windows | PostgreSQL v0.4.2

DaeunYim commented 1 year ago

Hi, thanks for reporting the issue.

I was unable to reproduce this error. I attempted an AAD connection to an Azure PostgreSQL server on both Windows 10 and 11, using ADS PG extensions 0.3 and 0.4, as well as ADS version 1.44 and previous versions. I did not encounter any errors.

There have been some new binaries introduced in the 0.4 version, and we suspect they may be related to the issue. Could you please follow the steps below to clean up your environment?

Navigate to "C:\Users.azuredatastudio\extensions" and delete any existing PostgreSQL extensions. Don't worry about losing your connection information, as they will reappear once you reinstall the extension.

Open your file explorer and go to the "%temp%" location. Remove any folders named "_MEI<6digit number>" if they exist.

Once you have completed these steps, please try downloading and installing the new version of the PostgreSQL extension again.

Please let us know if this resolves the issue or if you need any further assistance.

mikebuchanon commented 1 year ago

@DaeunYim I'd cleaned all of that out and reinstalled the extension, but I hadn't removed the temp folders. That didn't help, at least on the v.0.4.1 version.

Ultimately what fixed it for me was simply creating new connection entries using the same details and removing the old connections. So, AZ DS 1.44.1 with v0.4.2 of the PostgreSQL extension and it's working fine for me now.

Thanks for your help!

DaeunYim commented 1 year ago

Thanks to @murlakatam, we identified the bug and incorporated the fix. We are planning to release the updated version by the end of this month.

DaeunYim commented 1 year ago

Closing after stable release

nasc17 commented 1 year ago

Hello, issue has been addressed in our unstable release of PostgreSQL extension v0.4.3-insiders. We would appreciate your verification that it has been handled appropriately.

murlakatam commented 1 year ago

@nasc17 I can confirm I can connect using v0.4.3-insiders (using name with spaces)

nasc17 commented 12 months ago

Bug has been addressed in latest stable release of PostgreSQL extension v0.5.0. Please reopen if issue is still present, thank you.