Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect Number of Arguments Using PG8000 with OpenZiti. #50

Closed
natashell666 opened this issue Sep 11, 2023 · 0 comments · Fixed by #53
Closed

Incorrect Number of Arguments Using PG8000 with OpenZiti. #50

natashell666 opened this issue Sep 11, 2023 · 0 comments · Fixed by #53

Comments

@natashell666
Copy link

When using the python-sdk for connecting to a Database (in this case PGSQL), that's exposed as a service in the OpenZiti Overlay.
Pure Python libraries such as PG8000, complanins with an exception:

2023-09-11 07:31:27,891 - Error connecting to the database Traceback (most recent call last): File "/app/server/api-server.py", line 101, in get_db_connection conn = pg8000.connect( File "/usr/local/lib/python3.9/site-packages/pg8000/__init__.py", line 111, in connect return Connection( File "/usr/local/lib/python3.9/site-packages/pg8000/legacy.py", line 443, in __init__ super().__init__(*args, **kwargs) File "/usr/local/lib/python3.9/site-packages/pg8000/core.py", line 312, in __init__ self.channel_binding, self._usock = _make_socket( File "/usr/local/lib/python3.9/site-packages/pg8000/core.py", line 199, in _make_socket sock = socket.create_connection((host, port), timeout, source_address) TypeError: create_ziti_connection() takes 1 positional argument but 3 were given 2023-09-11 07:31:27,892 - General error: create_ziti_connection() takes 1 positional argument but 3 were given

Tested using openziti>=0.7.1.

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

Successfully merging a pull request may close this issue.

1 participant