简体   繁体   中英

DBT: How to fix Database Error Expecting Value?

I was running into troubles today while running Airflow and airflow-dbt-python . I tried to debug a bit using the logs and the error shown in the logs was this one:

[2022-12-27, 13:53:53 CET] {functions.py:226} ERROR - [0m12:53:53.642186 [error] [MainThread]: Encountered an error:
Database Error
  Expecting value: line 2 column 5 (char 5)

Quite a weird one.

Check your credentials file, in our case the credentials file was empty after an upgrade, even if you are using DBT directly through bash the error was exactly the same one and is not really explicit.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM