PostgreSql connection

failed to connect to server - Please try again. If the issue persists please open a support ticket that notes the time in UTC.
I get this error. I am printing data from Python to the Postgresql database with code, but I cannot connect it to the Grafana application.

please post your python code?




The python code is running and uploading data to PostgreSql. but I get this warning for grafana connection. By the way, my PostgreSql version is 16.2. Is there any problem in choosing the version?