-
Notifications
You must be signed in to change notification settings - Fork 43
Description
Hi ,
I am trying to connect to the trino server using blow code ,
and i am getting mising access token error.
can someone please help me.
do Rpresto support JWT (access token ) based authentication ?
code
install.packages("DBI")
install.packages("RPresto")
library(DBI)
library(RPresto)
con.trino <- DBI::dbConnect(
RPresto::Presto(),
use.trino.headers = TRUE,
host = "https://tcp.mytriniourl.com",
port = 7432,
user = "my_user",
schema = "my_schema", # Replace 'your_schema' with your schema name
catalog = "my_catalog",
extra.credentials = "my_access_token"
)
Error :
Error in .stop.with.error.message(.content) :
Query error - 6b4842eb-1726-4a9d-b0ee-0358a50433b7 failed: Missing accessToken
Calls: ... checkContentState -> stopWithErrorMessage -> .stop.with.error.message
Execution halted