Skip to content

من یک مشکل هنگام تسته relay #381

Description

@halloichnichtgut

log برنامه:
[ui] running test...
[ui] test result: fail
INFO fetch_ips_from_api disabled, using static fallback
ERROR Relay timeout — Apps Script unresponsive
ERROR test: FAIL (gateway error). Likely: wrong Apps Script ID, bad AUTH_KEY, quota hit, or Google edge unreachable. status=HTTP/1.1 504 Gateway Timeout
[ui] test result: fail
INFO fetch_ips_from_api disabled, using static fallback

Activity

  1. therealaleph commented on Apr 28, 2026

    @therealaleph
    Owner

    @halloichnichtgut — Relay timeout — Apps Script unresponsive + HTTP 504 = Apps Script یا در دسترس نیست (یا کندتر از ۲۵ ثانیه پاسخ می‌ده). دو بسته علل ممکن هست + هر کدوم workaround جداگانه داره:

    ۱. Apps Script outbound throttle از Iran ISP (محتمل‌ترین در حال حاضر — #313)

    از حدود ۱۲ ظهر ۲۶ آپریل، چندین کاربر در Iran گزارش دادن که Apps Script UrlFetchApp.fetch() outbound throttled یا blocked شده. علائم: timeout روی همه requestها، بدون mhrv-rs هم direct curl timeout می‌گیره.

    Diagnostic: اجرای direct curl از داخل Iran بدون mhrv-rs:

    curl -s -X POST 'https://script.google.com/macros/s/YOUR_DEPLOYMENT_ID/exec' \
      -H 'Content-Type: application/json' \
      -d '{"k":"YOUR_AUTH_KEY","u":"https://httpbin.org/get","m":"GET"}' \
      --max-time 15
    • اگه timeout/RST می‌گیره = همان #313. به آنجا منتقل بشید.
    • اگه JSON {"r":"...","s":200,...} می‌گیره = Apps Script کار می‌کنه. مشکل path mhrv-rs است. ادامه به سناریو ۲.

    ۲. Config issue در mhrv-rs

    اگه curl direct کار می‌کنه ولی mhrv-rs timeout می‌ده:

    • Deployment public نیست — Deploy → Manage Deployments → Edit → Who has access: Anyone
    • AUTH_KEY mismatch — مقدار auth_key در config.json با AUTH_KEY در Code.gs literally identical باشه (حتی فاصله ابتدا/انتها). #310 reply جزئیات
    • google_ip reachable نیست — تست با openssl:
      for ip in 216.239.38.120 142.251.214.78 172.217.18.78 64.233.180.78 74.125.196.78; do
        echo -n "$ip: "
        timeout 5 openssl s_client -connect "$ip:443" -servername www.google.com \
          < /dev/null 2>/dev/null \
          | grep -E "subject=" | head -1 || echo "FAIL"
      done
      اگه 216.239.38.120 (default) FAIL می‌ده ولی دیگری success می‌ده، در config.json "google_ip" رو به اون IP success تغییر بدید.

    ۳. v1.8.0 آپدیت کنید (اگه نیستید)

    نسخه v1.8.0 شامل:

    اگه روی نسخه قدیمی هستید، احتمال موفقیت بالاتره با v1.8.0. دانلود از: https://t.me/mhrv_rs

    نتیجه curl test direct + version mhrv-rs رو share کنید تا narrow-down کنیم. اگه curl timeout می‌ده = #313، این issue رو duplicate می‌بندم. اگه curl کار می‌کنه ولی mhrv-rs نه = baz nگه می‌داریم + بیشتر دیپ می‌شیم.


    [reply via Anthropic Claude | reviewed by @therealaleph]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions