Skip to content

script.google errore #298

Closed
Closed

Description

Activity

  1. therealaleph commented on Apr 27, 2026

    @therealaleph
    Owner

    سلام @heroice — ۴۰۳ روی script.google.com از داخل ایران معمولاً معنیش این هست که Google تشخیص داده آی‌پی منشأ شما در یه range هست که برای محصولات Apps Script محدود کرده. این دقیقاً کاری هست که mhrv-rs در حالت google_only انجام می‌ده — bootstrap path پروژه برای همین case طراحی شده.

    مراحل:

    ۱. mhrv-rs رو در حالت google_only راه بندازید:

    اگه اولین بار هست، در config:

    {
      "mode": "google_only",
      "google_ip": "216.239.38.120",
      "front_domain": "www.google.com",
      "listen_host": "127.0.0.1",
      "listen_port": 8085
    }

    mhrv-rs رو start کنید. هیچ deployment ID لازم نیست — فقط می‌خوایم به edge Google برسیم.

    ۲. در browser، system proxy رو ست کنید روی 127.0.0.1:8085 (HTTP)

    روی macOS: System Settings → Network → Wi-Fi → Details → Proxies → Web Proxy (HTTP)
    روی Windows: Settings → Network & internet → Proxy → Manual: 127.0.0.1:8085

    ۳. CA mhrv-rs رو نصب کنید (اگه قبلاً نکردید):

    mhrv-rs --install-cert

    ۴. حالا به https://script.google.com بروید

    از طریق mhrv-rs می‌رسید چون google_only mode SNI rewrite می‌کنه به Google edge IP که صفحه Apps Script سرو می‌کنه. ۴۰۳ نمی‌گیرید چون edge IP همون که کاربران غیر-ایرانی استفاده می‌کنن.

    ۵. در script.google.com یه پروژه جدید بسازید + Code.gs رو deploy کنید:

    محتویات از: https://raw.githubusercontent.com/therealaleph/MasterHttpRelayVPN-RUST/main/assets/apps_script/Code.gs

    AUTH_KEY رو set کنید + Deploy → New deployment → Web app → "Anyone" access → Deploy → Copy URL.

    ۶. حالا mhrv-rs رو به apps_script mode سوییچ کنید با اون deployment ID جدید

    اگه scan-ips گفت همه IPها timeout می‌دن، یعنی ISP شما همه‌ی Google edge IPها رو فیلتر کرده (rare ولی happen می‌کنه). در اون مورد، یه ISP دیگه (همراه اول، ایرانسل، شاتل) یا hotspot موبایل امتحان کنید.

    اگه با google_only mode همچنان ۴۰۳ گرفتید:

    • ممکنه اکانت Google شما auto-suspend شده باشه (تاریخچه فعالیت VPN چندگانه، ToS violation flag)
    • یه اکانت Google تازه روی یه دستگاه دیگه بسازید + از همون استفاده کنید

    اگه cert نصب نشده یا config مشکل داره، خروجی mhrv-rs در terminal رو share کنید.


    [reply via Anthropic Claude | reviewed by @therealaleph]

  2. heroice commented on Apr 27, 2026

    @heroice
    Author

    مرسی از پاسخگوییتون اما من روی ویندوز مشکلی ندارم فقط روی موبایل کار نمیکنه و وقتی میخوام وارد اسکریپت گوگل بشم خطا میده

  3. therealaleph commented on Apr 27, 2026

    @therealaleph
    Owner

    @heroice — اگه ویندوز کار می‌کنه، همهٔ setup Apps Script رو روی ویندوز انجام بدید + بعد deployment ID و auth_key رو در Android app وارد کنید.

    روال پیشنهادی:

    روی ویندوز (که کار می‌کنه):

    1. mhrv-rs ویندوز فعال در google_only mode + browser proxy ست شده
    2. به https://script.google.com بروید (از طریق mhrv-rs)
    3. New project → Code.gs → paste content از https://raw.githubusercontent.com/therealaleph/MasterHttpRelayVPN-RUST/main/assets/apps_script/Code.gs
    4. AUTH_KEY رو set کنید (یه string رندوم، مثلاً mySecret123abc)
    5. Save → Deploy → New deployment → Web app → "Anyone" access → Deploy
    6. URL deployment رو copy کنید (مثل https://script.google.com/macros/s/AKfycbXXX.../exec)
    7. ID قسمت رو extract کنید (AKfycbXXX... بین /s/ و /exec)

    روی موبایل:

    1. mhrv-rs Android رو install کنید (از Telegram channel یا GitHub Code → Download ZIP پوشهٔ releases/)
    2. Mode: apps_script
    3. AUTH_KEY: همون که در ویندوز ست کردید
    4. Deployment ID: AKfycbXXX... که از ویندوز copy کردید (just the ID, not the full URL)
    5. CA install کنید (در اپ یه دکمه هست)
    6. Connect

    Android نیازی به دسترسی به script.google.com نداره — فقط نیاز به deployment ID که مال ویندوز هست. Apps Script یه‌بار setup می‌شه (روی ویندوز که کار می‌کنه) و بعد همهٔ device‌ها از همون استفاده می‌کنن.

    اگه می‌خواید چندتا deployment داشته باشید (برای performance بهتر — مثل #243 توضیح دادم)، همهٔ ۵-۸ تا رو روی ویندوز بسازید + Android فقط ID‌ها رو وارد می‌کنه.


    [reply via Anthropic Claude | reviewed by @therealaleph]

  4. therealaleph commented on May 15, 2026

    @therealaleph
    Owner

    Closing this for now because there has not been a follow-up from the original reporter for more than 7 days.

    If this is still happening on the latest release, please comment here or reopen with the current version, mode, relevant config shape, and fresh logs.


    Answered via LLM, Supervised @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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions