Skip to content

Getting timeout error when trying to establish a connection #84

@ni-todo-spot

Description

@ni-todo-spot

Driver version

2.0.903

Redshift version

PostgreSQL 8.0.2 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.4.2 20041017 (Red Hat 3.4.2-6.fc3), Redshift 1.0.34691

Client Operating System

Darwin Nativs-MacBook-Pro.local 20.6.0 Darwin Kernel Version 20.6.0: Mon Aug 30 06:12:21 PDT 2021; root:xnu-7195.141.6~3/RELEASE_X86_64 x86_64

Python version

3.8.7

Problem description

  1. Expected behaviour: connection established
  2. Actual behaviour: timeout error
  3. More info: On the free trial period
  4. Error message/stack trace:
Traceback (most recent call last):
  File "/Users/tom/Projects/my_proj/.venv/lib/python3.8/site-packages/redshift_connector/core.py", line 544, in __init__
    self._usock.connect((host, port))
TimeoutError: [Errno 60] Operation timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "<input>", line 2, in <module>
  File "/Users/tom/Projects/my_proj/.venv/lib/python3.8/site-packages/redshift_connector/__init__.py", line 336, in connect
    return Connection(
  File "/Users/tom/Projects/my_proj/.venv/lib/python3.8/site-packages/redshift_connector/core.py", line 591, in __init__
    raise InterfaceError("communication error", e)
redshift_connector.error.InterfaceError: ('communication error', TimeoutError(60, 'Operation timed out'))

Reproduction code

import redshift_connector
conn = redshift_connector.connect(
     host='my-cluster.abc123.us-east-1.redshift.amazonaws.com',
     database='dev',
     user='awsuser',
     password='pass'
  )

What am I doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions