Travis Payne
09/17/2021, 5:41 PMipdb> ts_client.collections.retrieve()
*** requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8108): Max retries exceeded with url: /collections (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7ff2596ae950>: Failed to establish a new connection: [Errno 111] Connection refused'))
I am initializing my client,like so:
ts_client = typesense.Client({
'api_key': 'redacted-for-slack',
'nodes': [{
#'host': 'ts.typesense.svc.cluster.local',
'host': 'localhost',
'port': '8108',
'protocol': 'http'
}],
'connection_timeout_seconds': 5
})
… if anyone were to have any thoughts, suggestions, or advice I would appreciate it.
Thanks!Travis Payne
09/17/2021, 7:43 PMmadhweep lakshmanan
09/17/2021, 7:50 PMJason Bosco
09/17/2021, 8:05 PM"but when I try from inside a locally hosted django app"Is this app running in a docker container by any chance?
Travis Payne
09/17/2021, 8:06 PMTravis Payne
09/17/2021, 8:06 PMrequests.get
call that fails from inside the dockerized app.Jason Bosco
09/17/2021, 8:07 PMJason Bosco
09/17/2021, 8:07 PMTravis Payne
09/17/2021, 8:08 PMJason Bosco
09/17/2021, 8:08 PMTravis Payne
09/17/2021, 8:08 PMmadhweep lakshmanan
09/17/2021, 8:11 PMJason Bosco
09/17/2021, 8:11 PM