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

EXTERNALBROWSER login doesn't work for snowflake #104

Open
kwando opened this issue Oct 25, 2024 · 3 comments
Open

EXTERNALBROWSER login doesn't work for snowflake #104

kwando opened this issue Oct 25, 2024 · 3 comments

Comments

@kwando
Copy link

kwando commented Oct 25, 2024

 {:ok, database} =
      Adbc.Database.start_link(
        driver: :snowflake,
        "adbc.snowflake.sql.account": account,
        "adbc.snowflake.sql.user":  username,
        "adbc.snowflake.sql.auth_type": "auth_ext_browser",
        "adbc.snowflake.sql.client_option.tracing": "debug"
      )

The browser window is opened but the redirect back to localhost seems to hang for some reason, something is running on localhost cause the browser window doesnt show an error until I kill the Elixir process. Any ideas?

@cocoa-xu
Copy link
Member

Hi @kwando, Thanks for reporting this issue. I have some idea of what might cause it. I'll get a Snowflake trial account and test it!

@kwando
Copy link
Author

kwando commented Oct 25, 2024

Let me know if there is anything I can do to help!

@cocoa-xu
Copy link
Member

So originally I suspected it might be Erlang/OTP putting the NIF thread in background or something so it wasn't responding, but it still got stuck after I did a little hack and put it into the main thread and let it block waiting there.

Wasn't quite sure if it was a bug in ADBC 13 but we've updated to ADBC 14 so it might be fixed. Sorry that I recently didn't have enough bandwidth to test this. Please let me know if using v0.6.4 fixes this issue.

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

2 participants