The problem I’m having
dbt run returning Error: header info didn't have x_token_server
after access token has expired. I am using dbt-trino=1.8.1, had no issues before upgrading to 1.8.*. I can workaround this by deleting the keyring. It seems like dbt is not prompting for OAuth after the token has expired?
I was previously using keyring with keyrings.cryptfile backend, then updated to keyrings.alt. Both result in the same error after the token has expired.
14:36:51 Database Error in model dim_date (models\marts\common\dim_date.sql)
Error: header info didn't have x_token_server
The context of why I’m trying to do this
Trying to build my dim_date model in Starburst.
What I’ve already tried
Installing a different keyring.
Some example code or error messages
PS C:\Projects\dbt\dbt-edl\edl> dbt run --select marts.common
14:36:23 Running with dbt=1.8.5
14:36:23 Registered adapter: trino=1.8.1
14:36:31 Found 31 models, 9 analyses, 1652 sources, 827 macros
14:36:31
14:36:41 Concurrency: 24 threads (target='developer_workdb')
14:36:41
14:36:41 1 of 1 START sql table model ann_workdb.dim_date ............................... [RUN]
14:36:50 1 of 1 ERROR creating sql table model ann_workdb.dim_date ...................... [ERROR in 8.88s]
14:36:50
14:36:50 Finished running 1 table model in 0 hours 0 minutes and 18.88 seconds (18.88s).
14:36:51
14:36:51 Completed with 1 error and 0 warnings:
14:36:51
14:36:51 Database Error in model dim_date (models\marts\common\dim_date.sql)
Error: header info didn't have x_token_server
compiled Code at target\run\enterprise_data_library\models\marts\common\dim_date.sql
14:36:51
14:36:51 Done. PASS=0 WARN=0 ERROR=1 SKIP=0 TOTAL=1