You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem
When trying to load db connections that has a blank "Service" field it throws the following error:
CRITICAL dbname:databasename, definition of service "NULL" not found
To Reproduce
Create a db without setting the "Service" field. Error is thrown when pgRoutingLayer is loaded or trying to refresh the db list in the plugin.
The bug seems to be that the plugin expects this property to be None when it is not set, but it is actually "NULL" (string)
It can be fix by checking if the service property is "NULL" and setting it to None if it is:
if service == "NULL":
service = None
in the connect method of the Connection class in "postgis.py" after loading the settings.
I guess it could mess up if your service is actually called "NULL"
The text was updated successfully, but these errors were encountered:
same issue+1
also sometime it show dbname:pg, connection to server at "127.0.0.1", port 5432 failed: fe_sendauth: no password supplied but qgis can connect the pg success
Problem
When trying to load db connections that has a blank "Service" field it throws the following error:
CRITICAL dbname:databasename, definition of service "NULL" not found
To Reproduce
Create a db without setting the "Service" field. Error is thrown when pgRoutingLayer is loaded or trying to refresh the db list in the plugin.
The bug seems to be that the plugin expects this property to be
None
when it is not set, but it is actually "NULL" (string)It can be fix by checking if the service property is "NULL" and setting it to None if it is:
in the connect method of the Connection class in "postgis.py" after loading the settings.
I guess it could mess up if your service is actually called "NULL"
The text was updated successfully, but these errors were encountered: