can't connect to the tcp proxy
zeyadkhaled1
HOBBYOP

2 years ago

iam trying to connect to the tcp proxy as i have a fastapi app hosted on railway , the app works fine when generating a domain , but when i try to connect to the tcp proxy using normal requests it always fails

here is the code :

from curl_cffi import requests

url="http://viaduct.proxy.rlwy.net:port"
response = requests.get(url,impersonate='chrome110',verify=False)
print(response.text)

error :

curl_cffi.requests.errors.RequestsError: Failed to perform, curl: (56) Recv failure: Connection was reset. See https://curl.se/libcurl/c/libcurl-errors.html first for more details.

when using another requests library iam getting this error :

requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))

am i missing something ?

1 Replies

2 years ago

If it works fine with a generated domain, why use a TCP proxy?


Welcome!

Sign in to your Railway account to join the conversation.

Loading...