Skip to content

bug: Relay error: upstream HTTP 401 from script X #237

Description

@ImTheSadra

Version

44b2481

OS

Ubuntu

Python version

3.10.12

What happened

یه مدت استفاده میکردم و خیلی خوب کار میکرد. فقط مشکل سر certificate داشتم که اونم با استفاده از برنامه های مختلف اوکی شد.
بعد از این که یه بار اکانت گوگلم به محدودیت رسید یه اکانت دیگه زدم ولی روی اون هرگز کار نکرد
نمیدونم دقیقا مشکل چیه ولی شاید از upstream forwarder باشه.
شایدم خودم اشتباه کردم

Steps to reproduce

No response

DEBUG log excerpt (redact auth_key and script_id)

20:31:58  • INFO   [Fronter ]  H2 multiplexing active — one conn handles all requests
20:31:59  ✕ ERROR  [Proxy   ]  Relay error (https://github.com/): upstream HTTP 401 from script FDB9cwZ8
20:31:59  • INFO   [Proxy   ]  RESP ← github.com status=502 type=text/plain len=51 server=- location=- cf-ray=- hint=-
20:32:01  • INFO   [Fronter ]  Pre-warmed 30/30 TLS connections



$ curl -v -x http://127.0.0.1:8085 https://github.com
*   Trying 127.0.0.1:8085...
* Connected to (nil) (127.0.0.1) port 8085 (#0)
* allocate connect buffer!
* Establish HTTP proxy tunnel to github.com:443
> CONNECT github.com:443 HTTP/1.1
> Host: github.com:443
> User-Agent: curl/7.81.0
> Proxy-Connection: Keep-Alive
> 
< HTTP/1.1 200 Connection Established
< 
* Proxy replied 200 to CONNECT request
* CONNECT phase completed!
* ALPN, offering h2
* ALPN, offering http/1.1
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: /etc/ssl/certs
* TLSv1.0 (OUT), TLS header, Certificate Status (22):
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS header, Certificate Status (22):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS header, Finished (20):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.2 (OUT), TLS header, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use http/1.1
* Server certificate:
*  subject: CN=github.com
*  start date: Jul 10 17:01:56 2026 GMT
*  expire date: Jul 10 17:01:56 2027 GMT
*  subjectAltName: host "github.com" matched cert's "github.com"
*  issuer: CN=mhr-cfw; O=mhr-cfw
*  SSL certificate verify ok.
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
> GET / HTTP/1.1
> Host: github.com
> User-Agent: curl/7.81.0
> Accept: */*
> 
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* old SSL session ID is stale, removing
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* Mark bundle as not supporting multiuse
< HTTP/1.1 502 Bad Gateway
< Content-Type: text/plain
< Content-Length: 51
< 
* Connection #0 to host (nil) left intact
Relay error: upstream HTTP 401 from script FDB9cwZ8

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions