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

Scripting fails after system wakesup for postgres objects #454

Closed sahalMoidu closed 7 months ago

sahalMoidu commented 12 months ago

Describe the bug After the computer sleeps and wakes up, the connection to the postgres server seems to invalid. When trying to script select or create using the context menu scripting failed error occurs

Object of type NoneType does not support script operation ScriptOperation.SELECT

To Reproduce Steps to reproduce the behavior:

  1. Connect to postgres server
  2. Let your computer sleep for a while, possibly overnight
  3. Wake up and try to do any operation on the context menu of the table
  4. See error

Expected behavior If the connection is timed out or lost, it should automatically reconnect and be able to resume operation

Screenshots

image

Desktop (please complete the following information):

ADS (please complete the following information):

Additional context Earlier before updating to current version session id error used to appear as described in #423

sahalMoidu commented 11 months ago

@nasc17 possibly a related error occurs when trying to expanding node Failed to expand node: consuming input failed: Operation timed out SSL SYSCALL error: Operation timed out

image
nasc17 commented 11 months ago

@nasc17 possibly a related error occurs when trying to expanding node Failed to expand node: consuming input failed: Operation timed out SSL SYSCALL error: Operation timed out

image

Are you still using the v0.5.0 extension seeing this error or insiders?

sahalMoidu commented 11 months ago

I have v0.5.0 installed

image
sahalMoidu commented 11 months ago

@nasc17 another one similar is when trying to run a query on query editor

None Error while rolling back open transaction due to previous failure: None

image
nasc17 commented 11 months ago

Thank you for the added information. We are working on getting out a release to address the issue. Will keep you updated on how to verify fixes shortly.

nasc17 commented 11 months ago

Bug has been addressed in our unstable release of PostgreSQL extension v0.5.1-insiders. We would appreciate your verification that it has been handled appropriately.

nasc17 commented 7 months ago

image