Spaces:
Paused
Paused
debug: add screenshot + HTML dump for signup page troubleshooting
Browse filesCo-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
.github/workflows/register-outlook.yml
CHANGED
|
@@ -65,3 +65,14 @@ jobs:
|
|
| 65 |
path: output/*Outlook.zip
|
| 66 |
retention-days: 30
|
| 67 |
if-no-files-found: warn
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
path: output/*Outlook.zip
|
| 66 |
retention-days: 30
|
| 67 |
if-no-files-found: warn
|
| 68 |
+
|
| 69 |
+
- name: Upload debug screenshots
|
| 70 |
+
if: always()
|
| 71 |
+
uses: actions/upload-artifact@v4
|
| 72 |
+
with:
|
| 73 |
+
name: debug-${{ github.run_id }}
|
| 74 |
+
path: |
|
| 75 |
+
output/debug_*.png
|
| 76 |
+
output/debug_*.html
|
| 77 |
+
retention-days: 7
|
| 78 |
+
if-no-files-found: warn
|
register/outlook_register.py
CHANGED
|
@@ -240,6 +240,17 @@ def register_one(tid: int, proxy: Optional[str] = None, captcha_svc: Optional[Fu
|
|
| 240 |
page.get(SITE_URL)
|
| 241 |
time.sleep(4)
|
| 242 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 243 |
email_available = False
|
| 244 |
for _ in range(10):
|
| 245 |
username = _random_username()
|
|
|
|
| 240 |
page.get(SITE_URL)
|
| 241 |
time.sleep(4)
|
| 242 |
|
| 243 |
+
# Debug: save page state for troubleshooting
|
| 244 |
+
try:
|
| 245 |
+
os.makedirs("output", exist_ok=True)
|
| 246 |
+
page.get_screenshot(path="output/debug_signup_page.png", full_page=True)
|
| 247 |
+
with open("output/debug_signup_page.html", "w", encoding="utf-8") as f:
|
| 248 |
+
f.write(page.html or "")
|
| 249 |
+
print(f"[T{tid}] Page URL: {page.url}")
|
| 250 |
+
print(f"[T{tid}] Page title: {page.title}")
|
| 251 |
+
except Exception as dbg_exc:
|
| 252 |
+
print(f"[T{tid}] Debug screenshot failed: {dbg_exc}")
|
| 253 |
+
|
| 254 |
email_available = False
|
| 255 |
for _ in range(10):
|
| 256 |
username = _random_username()
|