1

Executing this code while developing using a remote tunnel (Azure VM), the URL (token) seems not to redirect the token back to the snowflake client

Session.builder.configs(
        {
            "account": account,
            "authenticator": "externalbrowser",
            "user": user,
            "warehouse": warehouse,
        }
    ).create()

redirection

error

Is there any workaround for this

2
  • If you can execute command line in context of that remote machine you can try to curl localhost://46157/\?token\=... Commented Nov 11 at 16:13
  • 1
    @LukaszSzozda You are right, this works Another solution I found is to replace the "localhost"-part in the URL with the external IP of my VM, then hit enter again Commented yesterday

1 Answer 1

0

As mentioned in the comments section it can be solved by:

  • accessing link via command line on remote machine curl localhost://46157/\?token\=... or
  • replacing localhost part of URL with the external IP of that VM.
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.