Type: xpipeline
Status: error
Started: 5 april 2026 10:23
Finished: 5 april 2026 10:23
Watcher: @NickSpisak_
Error: Traceback (most recent call last):
File "/app/newsops/management/commands/run_x_pipeline.py", line 929, in _run_watcher
user_id = _get_user_id(watcher.username)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/newsops/management/commands/run_x_pipeline.py", line 637, in _get_user_id
data = _x_get(f"/users/by/username/{username}", params={
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/newsops/management/commands/run_x_pipeline.py", line 120, in _x_get
r.raise_for_status()
File "/usr/local/lib/python3.12/site-packages/requests/models.py", line 1026, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.twitter.com/2/users/by/username/NickSpisak_?user.fields=id%2Cname%2Cdescription%2Cpublic_metrics
Pipeline log
[{'ok': True, 'ts': '2026-04-05T10:23:42.611728+00:00', 'stage': 'fetch', 'message': 'User ID ophalen voor @NickSpisak_...'}, {'ok': False, 'ts': '2026-04-05T10:23:42.801674+00:00', 'stage': 'error', 'message': '401 Client Error: Unauthorized for url: https://api.twitter.com/2/users/by/username/NickSpisak_?user.fields=id%2Cname%2Cdescription%2Cpublic_metrics'}]