payload: {"action":"created","issue":{"url":"https://api.github.com/repos/psycopg/psycopg2/issues/1003","repository_url":"https://api.github.com/repos/psycopg/psycopg2","labels_url":"https://api.github.com/repos/psycopg/psycopg2/issues/1003/labels{/name}","comments_url":"https://api.github.com/repos/psycopg/psycopg2/issues/1003/comments","events_url":"https://api.github.com/repos/psycopg/psycopg2/issues/1003/events","html_url":"https://github.com/psycopg/psycopg2/issues/1003","id":512968513,"node_id":"MDU6SXNzdWU1MTI5Njg1MTM=","number":1003,"title":"psycopg2 conn multihost fails","user":{"login":"batchenr","id":49156185,"node_id":"MDQ6VXNlcjQ5MTU2MTg1","avatar_url":"https://avatars1.githubusercontent.com/u/49156185?v=4","gravatar_id":"","url":"https://api.github.com/users/batchenr","html_url":"https://github.com/batchenr","followers_url":"https://api.github.com/users/batchenr/followers","following_url":"https://api.github.com/users/batchenr/following{/other_user}","gists_url":"https://api.github.com/users/batchenr/gists{/gist_id}","starred_url":"https://api.github.com/users/batchenr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/batchenr/subscriptions","organizations_url":"https://api.github.com/users/batchenr/orgs","repos_url":"https://api.github.com/users/batchenr/repos","events_url":"https://api.github.com/users/batchenr/events{/privacy}","received_events_url":"https://api.github.com/users/batchenr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2019-10-27T13:46:55Z","updated_at":"2019-10-29T17:33:50Z","closed_at":null,"author_association":"NONE","body":"Hey,\r\nI have 3 db servers on docker containers, and i used to connect like this from my python app:\r\n`psycopg2.connect(host=\"db-0\", user=\"user\", password=\"password\", database=\"data\")\r\n`This works, but if i add more then 1 host it fails.\r\n\r\n```\r\npsycopg2.connect(host=\"db-0, db-1\", user=\"user\", password=\"password\", database=\"data\")\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/usr/local/lib/python3.7/site-packages/psycopg2/__init__.py\", line 126, in connect\r\n    conn = _connect(dsn, connection_factory=connection_factory, **kwasync)\r\npsycopg2.OperationalError: could not translate host name \"db-0, db-1\" to address: Temporary failure in name resolution\r\n\r\n```\r\nmy package is psycopg2-2.8.4 and using python3.7 and psql 11.5 on docker containers db-0 and db-1\r\nused pip install psycopg2 to install.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/psycopg/psycopg2/issues/comments/547541949","html_url":"https://github.com/psycopg/psycopg2/issues/1003#issuecomment-547541949","issue_url":"https://api.github.com/repos/psycopg/psycopg2/issues/1003","id":547541949,"node_id":"MDEyOklzc3VlQ29tbWVudDU0NzU0MTk0OQ==","user":{"login":"dvarrazzo","id":199429,"node_id":"MDQ6VXNlcjE5OTQyOQ==","avatar_url":"https://avatars0.githubusercontent.com/u/199429?v=4","gravatar_id":"","url":"https://api.github.com/users/dvarrazzo","html_url":"https://github.com/dvarrazzo","followers_url":"https://api.github.com/users/dvarrazzo/followers","following_url":"https://api.github.com/users/dvarrazzo/following{/other_user}","gists_url":"https://api.github.com/users/dvarrazzo/gists{/gist_id}","starred_url":"https://api.github.com/users/dvarrazzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvarrazzo/subscriptions","organizations_url":"https://api.github.com/users/dvarrazzo/orgs","repos_url":"https://api.github.com/users/dvarrazzo/repos","events_url":"https://api.github.com/users/dvarrazzo/events{/privacy}","received_events_url":"https://api.github.com/users/dvarrazzo/received_events","type":"User","site_admin":false},"created_at":"2019-10-29T17:33:50Z","updated_at":"2019-10-29T17:33:50Z","author_association":"MEMBER","body":"Can you connect to the same database using `db-0,db-1` via psql?\r\n\r\nIf you can via psql and not via psycopg we have a thing to investigate.\r\n\r\nIf you can't via psql then it's an issue on your side you may want to look into, but I can't help."}}
other: {"actor":{"display_login":"dvarrazzo"}}