Prezado, boa noite.
Esta ocorrendo o erro a seguir, ao tentar executar o codigopython3 twitter_hook.py
Erro:
Traceback (most recent call last):
File "twitter_hook.py", line 59, in <module>
for pg in TwitterHook("AluraOnline").run():
File "twitter_hook.py", line 52, in run
session = self.get_conn()
File "/usr/local/lib/python3.8/dist-packages/airflow/hooks/http_hook.py", line 62, in get_conn
conn = self.get_connection(self.http_conn_id)
File "/usr/local/lib/python3.8/dist-packages/airflow/hooks/base_hook.py", line 87, in get_connection
conn = random.choice(list(cls.get_connections(conn_id)))
File "/usr/local/lib/python3.8/dist-packages/airflow/hooks/base_hook.py", line 83, in get_connections
return secrets.get_connections(conn_id)
File "/usr/local/lib/python3.8/dist-packages/airflow/secrets/__init__.py", line 59, in get_connections
raise AirflowException("The conn_id `{0}` isn't defined".format(conn_id))
airflow.exceptions.AirflowException: The conn_id `twitter_default` isn't defined
Notei que ele reclama que a twitter_default não foi definida. Porém ela foi criada. Obrigado desde já!