You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

DBT Cloud Python模型部署报错求助:本地DBT Core运行正常

dbt Cloud Python模型部署报错排查求助

本地dbt Core环境中Python模型可正常运行,但部署到dbt Cloud时出现以下错误:

09:22:19 78 of 83 START python table model bi_core.bt_f_mail_data__demo ................. [RUN]
E0831 09:22:20.512051123     400 hpack_parser.cc:992]                  Error parsing 'content-type' metadata: invalid value
09:22:20  Unhandled error while executing target/run/dbt_bi_officeservice/models/bi_core/sats/fullrefresh/bt_f_mail_data__demo.py
None Stream removed
09:22:20 78 of 83 ERROR creating python table model bi_core.bt_f_mail_data__demo ........ [ERROR in 0.56s]

Python模型代码如下:

def model(dbt, session):
   dbt.config(
              materialized = "table",
              tags= ["python"],
              submission_method="serverless",
              #packages = ["numpy==1.23.1", "scikit-learn"]
             )
   sql_model = dbt.ref('bt_f_mail_data')
   df = sql_model.to_pandas_on_spark()
   return df

烦请帮忙排查,是否有遗漏的配置或步骤?

内容的提问来源于stack exchange,提问作者dagi_de

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.12 08:25:59