https://prefect.io logo
Title
m

Mark NS

12/13/2022, 9:56 AM
Hey gang, I am trying to save a DbtCliProfile block that contains DatabaseCredentials for a postgres db, but am running into an error:
dbt_cli_profile = DbtCliProfile(
    name="dbt_dwh",
    target=DEFAULT_BLOCK,
    target_configs=PostgresTargetConfigs(
        credentials=DatabaseCredentials.load(DEFAULT_BLOCK), schema="public"
    ),
)
dbt_cli_profile.save(name="dbt_dwh")
TypeError: Type is not JSON serializable: URL
Has anyone else seen this?