-
Notifications
You must be signed in to change notification settings - Fork 20
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
Some bug with "Detail: Unauthenticated Invalid bearer token provided. Detail: Unauthenticated" #11
Comments
hi @YuriyGavrilov - the JDBC client can cache tokens - so it may likely be trying to use a token that was generated for localhost before you ran in Docker. I would suggest using a different value for the |
Also - I used the PostgreSQL dialect when I tested on my end - it seemed to work well. I did not test MySQL - as DuckDB seems to use more of a PostgreSQL dialect... |
I found that adding |
@prmoore77 it seems I broke everything in my environment. receive
logs
|
Thanks for testing... It seems we need to overhaul either the server's auth code, or allow a way to force a token refresh in the JDBC driver with an argument. I'll research this more and try to find a good strategy... |
The |
@YuriyGavrilov - I believe I've fixed the issue. Could you validate? |
Yep, I'm sure it's true. Will fix my environment and retest. Many thx 🙏 for your help @prmoore77 |
@prmoore77 I've also made some changes in arrow. May be you should know it to make some adoption. apache/arrow#38253 (apache/arrow#38737 - this PR) or may be need to add different issue it but anyway I put it here may be nothing needs to do) |
@YuriyGavrilov - by the way - is your solution now working ok? I just wanted to follow up... Thanks. |
@prmoore77 plan to test it today evening... will come back to you after. |
@prmoore77 Making tests ... in dbeaver everything is good but in tableau not so... some driver issue. come back to arrow 10 version and make test again. receive this in tableau log:
![]()
Will try to find the main reason of this. If I change dialect from sql 92 to Portgres - receive this: and it seems to be good enough but I just didn't see any tables inside tableau ... just can't chose it in UI.
it is normal that tableau trying to create some temp tables inside DB. So it is normal for it. ![]() |
tried to save it in tableau data source format (file type .tds ) ... here it is:
|
hi @YuriyGavrilov - unfortunately, my Tableau trial license expired - so I'm unable to test things with it now. Before it expired, I believe I had it all working with the Arrow Flight SQL JDBC driver version: I wish I could help more, but it may take me a while to get a Tableau license... |
it't ok. @prmoore77 for the 14.0.1 I get this message. ![]() ![]() I ve download it with this artifact:
it works fine in dbeaver. |
I'm running macOS - and I had to put the driver jar file in: |
I use this doc to locate it https://help.tableau.com/current/pro/desktop/en-us/examples_otherdatabases_jdbc.htm?_gl=1*13o39fp*_ga*NjU2NzcyNDc5LjE3MDA5NDA1MDc.*_ga_8YLN0SNXVS*MTcwMTcyNTgzOS41LjEuMTcwMTcyNTg3MS4wLjAuMA..
I also use Mac OS |
Did you remove other versions of the driver? Maybe there can only be one version in the folder... |
Oh - also, I think you can now remove the |
Yep, sure |
@prmoore77 Finally I run flight sql, but with kamu-cli project ... to be sure that tableau is working. ![]() tables showed properly and with sql92 dialect. (ok, 98% properly :), some sql errors still exist based on this example https://github.com/kamu-data/kamu-cli/tree/master/examples/trading
Connect using URL: jdbc:arrow-flight-sql://127.0.0.1:10000?useEncryption=false |
@YuriyGavrilov - oh ok - there must be something in the kamu version of Flight SQL that we need to emulate here for DuckDB... |
By the way - that |
hi @YuriyGavrilov - I got a Tableau license - and tested with the default TPC-H database that comes with the docker image for this example Flight SQL server. I started the Flight SQL server with:
I am using the 14.0.2 JDBC driver version - with JDBC url: I choose: Can you verify on your end? |
@prmoore77 Yep, sure I will. Are you use Mac OS or Win? |
Mac OS
On Dec 20, 2023, at 3:21 PM, Yuriy Gavrilov ***@***.***> wrote:
Yep, sure I will. Are use Mac OS or Win?
—
Reply to this email directly, view it on GitHub<#11 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AE6YADJR4SJJFOZZ76WF343YKNCEZAVCNFSM6AAAAAA7AACNV6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRVGA4DGMRQGY>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Dbeaver log:
cfjd.org.apache.arrow.flight.FlightRuntimeException: UNAUTHENTICATED: Invalid bearer token provided. Detail: Unauthenticated
cfjd.org.apache.arrow.flight.FlightRuntimeException: UNAUTHENTICATED: Invalid bearer token provided. Detail: Unauthenticated
Invalid bearer token provided. Detail: Unauthenticated
Tableau log:
Unable to complete action
Bad Connection: Tableau could not connect to the data source.
Error Code: FAB9A2C5
cfjd.org.apache.arrow.flight.FlightRuntimeException: UNAUTHENTICATED: Invalid bearer token provided. Detail: Unauthenticated
Generic JDBC connection error
cfjd.org.apache.arrow.flight.FlightRuntimeException: UNAUTHENTICATED: Invalid bearer token provided. Detail: Unauthenticated
Context:
After docker run I can properly get access to dbever. but when I just try to connect with tableau it show UNAUTHENTICATION issue . After I go back to dbever and it shows same UNAUTHENTICATION issue till I restart docker.
This is terminal docker log.
It happens when I try to connect from Tableau with "Mysql" dialect and Postgres dialect. It shows nothing with SQL92.
![Снимок экрана 2023-11-06 в 22 10 09](https://private-user-images.githubusercontent.com/44679014/280821702-a688efb9-7e0c-42d7-bb27-426f0b746782.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg2NjE3ODksIm5iZiI6MTcxODY2MTQ4OSwicGF0aCI6Ii80NDY3OTAxNC8yODA4MjE3MDItYTY4OGVmYjktN2UwYy00MmQ3LWJiMjctNDI2ZjBiNzQ2NzgyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE3VDIxNTgwOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWVkMmY3MjFkOTc1YWQxOGRiMTg5ZTcxNDZhOGE5OTQzYjczYmY5ODQyM2I1MTM1ZGZlMTc1YzdjNWVhOWFlNzcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.rkNyJwCVJFON8KG1Sl3NWTtaxgCoPrE16UrvKQjNXjM)
The text was updated successfully, but these errors were encountered: