mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
fix(config): remove invalid tracker btorrent.xyz and update debug filter
- Removes `wss://tracker.btorrent.xyz` from `js/constants.js` due to SSL cert error. - Updates `scripts/agent/debug_frontend.py` to filter out unavoidable external content errors (CORS, 404, invalid certs) to ensure the debug agent focuses on regression in the codebase. - Adds completion log for the weekly agent run. Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
d5a671d8bc
commit
ff13f62380
3 files changed
+35
-1
No files matched your search
@@ -22,6 +22,16 @@ def run():
|
||||
def on_console(msg):
|
||||
nonlocal error_count
|
||||
if msg.type == "error":
|
||||
# Ignore known external/content errors that are not code issues
|
||||
ignored_errors = [
|
||||
"net::ERR_CERT_COMMON_NAME_INVALID",
|
||||
"blocked by CORS policy",
|
||||
"net::ERR_FAILED",
|
||||
"404 (Not Found)"
|
||||
]
|
||||
if any(ignored in msg.text for ignored in ignored_errors):
|
||||
log(f"CONSOLE:ERROR(IGNORED)", msg.text)
|
||||
return
|
||||
error_count += 1
|
||||
log(f"CONSOLE:{msg.type.upper()}", msg.text)
|
||||
|
||||
|
||||
Reference in new issue
Block a user