Open MihaiBojin opened 1 week ago
Not the same error, but related outcome:
File "/usr/local/bin/waf-downloader", line 8, in <module>
sys.exit(main())
~~~~^^
File "/usr/local/lib/python3.13/site-packages/waf_logs_cli/cli.py", line 122, in main
et = download_loop(
sink=sink,
...<4 lines>...
start_time=start_time,
)
File "/usr/local/lib/python3.13/site-packages/waf_logs/downloader.py", line 218, in download_loop
result: LogResult = get_waf_logs(
~~~~~~~~~~~~^
zone_tag=zone_id,
^^^^^^^^^^^^^^^^^
...<3 lines>...
end_time=window_end,
^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.13/site-packages/waf_logs/cloudflare_waf.py", line 87, in get_waf_logs
raise RuntimeError(f"Errors were found: {data}")
RuntimeError: Errors were found: {'data': None, 'errors': [{'message': 'Internal server error', 'path': None, 'extensions': {'code': 'INTERNAL_SERVER_ERROR', 'timestamp': '2024-11-13T11:45:03.110411259Z'}}]}
At times the CF API returns with 520. Handle this gracefully.