Skip to content

Relay fails after ~30-40% quota consumed — apps_script timeouts, full tunnel also dead #877

@Montazeran8

Description

@Montazeran8

Environment

  • mhrv-rs version: v1.9.17
  • OS: Windows 10
  • ISP: ADSL (Mokhaberat Iran)

Problem Description

The relay works normally for some time after a fresh deployment, but after consuming approximately 30–40% of the daily UrlFetchApp quota, it starts failing consistently with 502/504 errors. This happens in both apps_script mode and full mode (ngrok tunnel).

apps_script mode behavior:

  • Initially passes end-to-end test (200 OK).
  • After moderate usage, every relay request returns:
    HTTP/1.1 502 Bad Gateway
    Relay error: timeout
    
  • Even simple HTTP POSTs to Telegram’s API (149.154.*.*) fail with the same timeout error.

full mode (ngrok) behavior:

  • Tunnel establishes correctly, but soon every batch operation times out:
    WARN batch failed (script …): timeout
    ERROR tunnel connect_data error … : timeout
    
  • The script is rapidly blacklisted after 3 timeouts in 30 seconds, making the tunnel unusable.

Suspected Cause

The daily quota on my account appears to be around 10,000 requests (half of the documented 20,000), which means I hit the limit much earlier than expected. This explains why the relay works initially but dies after moderate usage.

Impact

This makes the relay unreliable for any real work. I have to rebuild the relay frequently just to get a few hours of usable connectivity.

Request

Is there a known issue with lower quota for certain Google accounts (e.g., accounts created from Iran)? Could this be a regional restriction? Any workaround to increase the effective quota (beyond multiple script_ids) would be appreciated.

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