Skip to content

Trying to use deno exit node, but got a json in return #1387

Open

Description

@Shjpr9

I was trying to open chatgpt with deno exit node but I got this in response:
Image
How can I fix it? What is the problem?

Activity

  1. dazzling-no-more commented on May 25, 2026

    @dazzling-no-more
    Contributor
  2. Shjpr9 commented on May 25, 2026

    @Shjpr9
    ContributorAuthor

    Hey @dazzling-no-more
    It seems I had to upgrade Code.gs.

    • Upgraded normal Code.gs works with Chatgpt even though it throws an error:

    WARN chatgpt.com returned a Cloudflare bot-block even through your exit node — the exit-node host's outbound IP is itself on Cloudflare's blocklist for this site. Switch your exit-node deployment to a host with a non-GCP outbound IP (fly.io or a small VPS using assets/exit_node/wrapper.ts) and update relay_url in config.json (see assets/exit_node/README.md, Hosting options section).

    • Upgraded Code.cfw.gs, but the problem still exists:

    WARN exit node failed for https://chatgpt.com/: relay error: exit-node response was double-wrapped — Apps Script is running a pre-v2.0.2 Code.gs that ignores the raw: true flag. Open your Apps Script project, replace Code.gs with the v2.0.2+ version from assets/apps_script/Code.gs, then Deploy → Manage deployments → New version. Same fix applies to Cloudflare Worker deployments (assets/cloudflare/worker.js). — falling back to direct Apps Script

    Edit: I upgraded those based on the codes that are provided in the Rahgozar's assets

    Also there is another error within the Rahgozar but since the issues were closed, I couldn't open one for it.
    When updating the sni pool I get this error:

    Image

    This error pops up right after you click on "SNI Pool" button

  3. dazzling-no-more commented on May 25, 2026

    @dazzling-no-more
    Contributor

    @Shjpr9

    Thanks for the careful testing and the screenshot — both reports were really useful.

    SNI Pool crash: confirmed bug, fixed in v2.9.1.

    CFW double-wrap warning: I traced the chain end-to-end (rahgozar → Code.cfw.gs → worker.js → exit_node) and ran a four-way simulation against current assets/. The result:

    Apps Script Worker Result
    new new ✅ delivers page content
    new old ❌ double-wrap error
    old new ❌ double-wrap error
    old old ❌ double-wrap error

    So the repo source is correct when both halves are upgraded — and the symptom is byte-identical across the three broken-deployment cases, which is why the old error message was misleading. The most common gotcha is that pasting code isn't deploying it:

    • Apps Script: after pasting Code.cfw.gs, you have to do Deploy → Manage deployments → pencil icon → Version: New version → Deploy. Saving alone keeps the old deployment serving /exec.
    • Cloudflare Worker: in the dashboard editor, click the Save and deploy button (top-right). The plain "Save" only saves a draft.

    To pinpoint which half is stale on your setup, hit the Worker directly:

    curl -sS -X POST https://YOUR-WORKER.workers.dev \
      -H "Content-Type: application/json" \
      -d '{"k":"YOUR_AUTH_KEY","u":"https://httpbin.org/uuid","m":"GET","raw":true}'
  4. therealaleph commented on May 25, 2026

    @therealaleph
    Owner

    Thanks for testing and writing down what changed.

    One important compatibility note: if you are using upstream mhrv-rs, use the upstream app and the upstream assets/apps_script/Code.gs from this repository. If you are using rahgozar, use the rahgozar app and rahgozar Code.gs / Code.cfw.gs. Mixing app + Apps Script + Worker assets across the two repos can produce exactly these “double wrapped” or raw JSON symptoms, because the envelope expectations may not match.

    For the Cloudflare Worker path, both halves have to be redeployed, not just saved:

    • Apps Script: Deploy -> Manage deployments -> Edit -> Version: New version -> Deploy
    • Cloudflare Worker: Save and deploy

    The SNI Pool crash sounds fork-specific, so that one should be tracked in the fork. For this upstream issue, the actionable question is whether upstream mhrv-rs plus upstream Code.gs still returns a raw {"s":200,"h":...} envelope after a fresh deployment.


    Answered via LLM, Supervised @therealaleph

  5. aligh1386 commented on May 26, 2026

    @aligh1386

    سلام من از ۲ حالت امدم استفاده کنم

    حالت اول بدون کلود فلر که کاملا اوکی بود جمنای حتی بالا اوردم باهاش

    حالت دوم ترکیب با کلود فلر متاسفانه نمیدونم مشکل چیه دیپلوی منت ها میرن درجا توی بلک لیست ظاهرا یچا خودم اشتباه کردم احتمالا

    و در مورد
    کلود فلر چه نسخه فورک این یرنامه چه نسخه اصلی mhrv rs

    در هر دو صورت یک مشکل دارم اونم اینه که کد هاشون وقتی paste میکنی

    وقتی پسورد عوض میکنی یک شرط که برسی میکنه ایا حالت دیفالت و غیر دیفالت با هم برابر هستند ارور میده مجیور میشم اون شرط پاک کنم که تاثیری نداره چون کار میکردن فقط جهت اطلاع گفتم

    و در مورد exit not
    وقتی که کد در نسخه فورک برنامه گذاشتم ۲ خط ارور داشت دادم به هوش مصنوعی یه نسخه بدون مشکل برام داد از اون استفاده کردم

    ولی این ها مشکل نبودن مشکل اصلی اینه امدم از worker.js
    نسخه فورک استفاده کنم با code.cfw.gs

    دیپلوی منتم در کسری از ثانبه بلک لیست میشه

  6. therealaleph commented on May 28, 2026

    @therealaleph
    Owner

    اگر به‌جای صفحه، raw JSON یا envelope می‌بینید، معمولاً یکی از این دو اتفاق افتاده است:

    1. مسیر assetها با هم قاطی شده‌اند؛ مثلاً app اصلی mhrv-rs با Code.gs / Worker مربوط به fork دیگر، یا برعکس.
    2. پاسخ exit-node/worker به شکلی برگشته که client آن را unwrap نکرده و همان JSON خام به مرورگر رسیده است.

    برای upstream mhrv-rs، لطفاً این ترکیب را نگه دارید:

    mhrv-rs upstream app/client
    assets/apps_script/Code.cfw.gs از همین repo
    worker.js / Cloudflare Worker سازگار با همین repo
    AUTH_KEY یکسان در client و Apps Script
    

    اگر از rahgozar استفاده می‌کنید، app و Code.gs / Code.cfw.gs / Worker همان repo را با هم استفاده کنید. ترکیب‌کردن دو پروژه دقیقاً می‌تواند raw JSON / double-wrap / unwrap error بدهد.

    در مورد شرطی که بعد از تغییر password/default مقدار خطا می‌دهد: آن guard را حذف نکنید. اگر guard خطا می‌دهد یعنی هنوز یک placeholder یا مقدار ناسازگار در یکی از سمت‌ها مانده است. حذف guard فقط خطای واضح را تبدیل به خطای مبهم‌تر در runtime می‌کند.

    برای ChatGPT هم جداگانه باید بگویم Deno/Cloudflare/Datacenter exit node ممکن است همچنان با Cloudflare challenge بخورد؛ حتی اگر JSON درست شود، تضمین نمی‌کند chatgpt.com از آن exit IP قبول شود.


    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