R0tenur / visualization

MIT License
177 stars 26 forks source link

Error getting data: Failed to connect to locahost; 9001:1433 - getaddrinfo ENOTFOUND localhost, 9011 #20

Closed m4ss1m0g closed 3 years ago

m4ss1m0g commented 3 years ago

Expected Behavior

Show the Schema

Current Behavior

Pop up an error

Possible Solution

Remove default port (1433) from the connection. I suspect there are a default port 1433 on the connection the error says Failed to connect to locahost; 9001:1433 9001 is the port where my SQL listen.

Steps to Reproduce

  1. Install a SQL Server instance on port 9001 or
  2. With docker launch docker run -d -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=P@ssw0rd!" -e "MSSQL_AGENT_ENABLED=true" -p 9001:1433 --name sql1 --hostname sql1 mcr.microsoft.com/mssql/server:2019-latest
  3. Launch the Schema Visualization

Other

Cannot copy/click the link on the error message

Attached

I attach the image of the error Screenshot 2020-09-25 221656

R0tenur commented 3 years ago

Duplicate of #10, is fixed in more recent versions. Look under releases in this repo. (I need to do a pull request to azure data studio to uppdaterad the version in the store. Will happen soon)