Help with dbtTaskGroup throwing error and I can not find the cause.

The problem I’m having

I had several dbt dimensions created and running under Airflow MWAA. Then all of sudden I started getting the following error and I can not figure out the cause.

What I’ve already tried

I remove all the models but 1 simple dimension that creates view. I still get the error. I have removed all macros and other components trying to solve the error.

Error

Broken DAG: [/usr/local/airflow/dags/hhp_clinical/dags/hhp_clinical_table_DIM_ETHNICITY.py]
Traceback (most recent call last):
File “/usr/local/airflow/.local/lib/python3.11/site-packages/cosmos/dbt/graph.py”, line 348, in run_dbt_ls
stdout = run_command(ls_command, tmp_dir, env_vars)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/airflow/.local/lib/python3.11/site-packages/cosmos/dbt/graph.py”, line 120, in run_command
raise CosmosLoadDbtException(f"Unable to run {command} due to the error:\n{details}")
cosmos.dbt.graph.CosmosLoadDbtException: Unable to run [‘/usr/local/airflow/python3-virtualenv/dbt-env/bin/dbt’, ‘ls’, ‘–output’, ‘json’, ‘–project-dir’, ‘/tmp/tmpcidd56fq’, ‘–profiles-dir’, ‘/usr/local/airflow/dags/hhp_clinical/dbt_hhp_clinical’, ‘–profile’, ‘dbt_hhp_clinical’, ‘–target’, ‘current’, ‘–select’, ‘stg_ethnicity’] due to the error:
Traceback (most recent call last):
File “/usr/local/airflow/python3-virtualenv/dbt-env/bin/dbt”, line 8, in
sys.exit(cli())
^^^^^
File “/usr/local/airflow/python3-virtualenv/dbt-env/lib/python3.11/site-packages/click/core.py”, line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/airflow/python3-virtualenv/dbt-env/lib/python3.11/site-packages/click/core.py”, line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File “/usr/local/airflow/python3-virtualenv/dbt-env/lib/python3.11/site-packages/click/core.py”, line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/airflow/python3-virtualenv/dbt-env/lib/python3.11/site-packages/click/core.py”, line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/airflow/python3-virtualenv/dbt-env/lib/python3.11/site-packages/click/core.py”, line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/airflow/python3-virtualenv/dbt-env/lib/python3.11/site-packages/click/decorators.py”, line 33, in new_func
return f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/airflow/python3-virtualenv/dbt-env/lib/python3.11/site-packages/dbt/cli/main.py”, line 148, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/airflow/python3-virtualenv/dbt-env/lib/python3.11/site-packages/dbt/cli/requires.py”, line 156, in wrapper
fire_event(
File “/usr/local/airflow/python3-virtualenv/dbt-env/lib/python3.11/site-packages/dbt_common/events/functions.py”, line 139, in fire_event
get_event_manager().fire_event(e, level=level)
File “/usr/local/airflow/python3-virtualenv/dbt-env/lib/python3.11/site-packages/dbt_common/events/event_manager.py”, line 15, in fire_event
msg = msg_from_base_event(e, level=level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/airflow/python3-virtualenv/dbt-env/lib/python3.11/site-packages/dbt_common/events/base_types.py”, line 139, in msg_from_base_event
“msg”: event.message(),
^^^^^^^^^^^^^^^
File “/usr/local/airflow/python3-virtualenv/dbt-env/lib/python3.11/site-packages/dbt/events/types.py”, line 1990, in message
return f"Resource report: {self.to_json()}"
^^^^^^^^^^^^^^
File “/usr/local/airflow/python3-virtualenv/dbt-env/lib/python3.11/site-packages/dbt_common/events/base_types.py”, line 98, in to_json
return MessageToJson(
^^^^^^^^^^^^^^
TypeError: MessageToJson() got an unexpected keyword argument ‘including_default_value_fields’

Some example code or error messages

     dw_dim_ethnicity_transform = DbtTaskGroup(
                    group_id = f"Run_{control_data.model_name.lower()}",
                    project_config=project_config,
                    profile_config=profile_config,
                    execution_config=control_data.execution_config,
                    operator_args={"install_deps": False},                      
                    default_args={"retries": control_data.retries, "debug": True},            
                    render_config = RenderConfig(select=[f"stg_ethnicity"], test_behavior=TestBehavior.AFTER_ALL)
        )

Any help will be greatly appreciated.

Cary