Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

[PostgreSQLClient:1197] The connection attempt failed. The backend does not want to establish a secure SSL/TLS connection. #29

Closed
jacksonwilliampluskota opened this issue Sep 15, 2021 · 4 comments

Comments

@jacksonwilliampluskota
Copy link

Hi.
When i try to connect doesn't work and always return this error for me

E 0:00:00.967 call: [PostgreSQLClient:1197] The connection attempt failed. The backend does not want to establish a secure SSL/TLS connection.
<C++ Source> modules/gdscript/gdscript_functions.cpp:803 @ call()
PostgreSQLClient.gd:325 @ poll()
SelectFromDB.gd:36 @ _process()
i try do this to database.connect_to_host("postgresql://%s:%s@%s:%d/%s?ssl=true" % [user, password, host, port, databaseConection]) but doesnt work

@jacksonwilliampluskota
Copy link
Author

jacksonwilliampluskota commented Sep 16, 2021

i got your new version code with ssl connection and show me this
image

@Marzin-bot
Copy link
Owner

The error you go up has been fixed. I am working on AuthenticationSASL support so expect some bugs. I haven't finished putting up with it yet. You can re-download, my apologies. Going back to the problem on the secure connection, it will appear that you have not configured your backend to accept them. See similar problem: #20

@Marzin-bot
Copy link
Owner

Marzin-bot commented Sep 16, 2021

Pass the ssl parameter of connect_to_host to false to see or configure your backend to accept ssl / tls connections.

@jacksonwilliampluskota
Copy link
Author

thanks, it's wok now

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants