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

Using IDC BrowserAuthPlugin to connect to Redshift #241

Open
bpatchin1 opened this issue Oct 23, 2024 · 0 comments
Open

Using IDC BrowserAuthPlugin to connect to Redshift #241

bpatchin1 opened this issue Oct 23, 2024 · 0 comments

Comments

@bpatchin1
Copy link

Driver version

2.0.0

Redshift version

([1372],)

Client Operating System

MacOS

Python version

Python 3.12.4

Table schema

not needed

Problem description

  1. Expected behaviour: Trying to connect to IDC using BrowserAuthPlugin, but running into various errors.
  2. Actual behaviour: Running into various errors
  3. Error message/stack trace: Error connecting to Redshift: {'S': 'FATAL', 'C': '28000', 'M': 'no PostgreSQL user name specified in startup packet', 'F': '/home/ec2-user/padb/src/pg/src/backend/postmaster/postmaster.c', 'L': '3518', 'R': 'ProcessStartupPacket'}
  4. Any other details that can be helpful:

-- CODE --

    conn = redshift_connector.connect(
        ssl=True,
        host=cluster_endpoint,
        port=port,
        database=database,
        idc_region=idc_region,
        provider_name='BrowserIdcAuthPlugin',
        issuer_url=issuer_url
        )

Looking for code that connects to Redshift using IDC BrowserAuthPlugin, seems like I am missing some important params

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

No branches or pull requests

1 participant