Ao executar o arquivo copiado da aula, estou encontrando o seguinte erro:
Até gerei outro beare e botei la na connection do localhost...mas continua dando o mesmo 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 56, in run
yield from self.paginate(url, session)
File "twitter_hook.py", line 45, in paginate
data = self.connect_to_endpoint(full_url, session)
File "twitter_hook.py", line 37, in connect_to_endpoint
return self.run_and_check(session, prep, {}).json()
File "/home/lucas/datapipeline/.env/lib/python3.8/site-packages/airflow/hooks/http_hook.py", line 181, in run_and_check
self.check_response(response)
File "/home/lucas/datapipeline/.env/lib/python3.8/site-packages/airflow/hooks/http_hook.py", line 152, in check_response
raise AirflowException(str(response.status_code) + ":" + response.reason)
airflow.exceptions.AirflowException: 401:Unauthorized