New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error connect over TOR #5998
Comments
In general, you need to provide the full error for us to help. However, since you mentioned SOCKS, that is the clear problem. grpc-java does not support SOCKS. We only support HTTP CONNECT-based client-side proxies. |
Thanks for the reply, I couldn't get any more error logs other than a grpc
runtime exception with error message unavailable, anyway thanks for
clarifying that GRPC does not support socks
…On Wed, Jul 24, 2019, 2:51 AM Eric Anderson ***@***.***> wrote:
In general, you need to provide the full error for us to help.
However, since you mentioned SOCKS, that is the clear problem. grpc-java
does not support SOCKS. We only support HTTP CONNECT-based client-side
proxies.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5998?email_source=notifications&email_token=ABSECNZKS77QUHJ5EKEZXDDQA5AKDA5CNFSM4IFY77EKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2T5HRA#issuecomment-514315204>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABSECN3OSX3WA2XU7CHRA23QA5AKDANCNFSM4IFY77EA>
.
|
That's exactly what I was hoping to see. You are also free to remove any of your own classes from the backtrace (although saying "snip" or "removed" where you removed a section is useful just to make it obvious where things were removed). If the only information was |
I created a gist with the stack trace based on a few different variations of OkHttpChannelBuilder builder config |
@mandelmonkey, looks like you were meaning https://gist.github.com/mandelmonkey/2ce8a97a73cfda2651f2074f8fc4eb60 It looks like TLS handshaking failed. Either the remote server isn't speaking TLS or it doesn't support TLS v1.2 (see the WRONG_VERSION_NUMBER in the error). |
thanks for the reply, indeed the Tor onion address is using http not https, I was unsure how to disable TLS when connecting but tried the following
and got the errors starting here is this not the correct way to connect to a non ssl uri? |
Channels by default use TLS. But |
I confirmed using
|
@mandelmonkey, that's a more appropriate error. 4740180 is 0x485454 which is "HTT" in ASCII. It seems you are hitting an HTTP/1 server, not HTTP/2. I am sorry it is cryptic, but plaintext isn't as commonly used with OkHttp so this failure hasn't happened as much and so we've not gone out of our way to add more debug information to make it more clear to users. What server is being used? Is there a reverse (server-side) proxy involved? |
Let me check with the developers of the server, I believe there is a reverse proxy being used, will get the details
… On Aug 1, 2019, at 0:11, Eric Anderson ***@***.***> wrote:
@mandelmonkey, that's a more appropriate error. 4740180 is 0x485454 which is "HTT" in ASCII. It seems you are hitting an HTTP/1 server, not HTTP/2. I am sorry it is a cryptic, but plaintext isn't as commonly used with OkHttp so this failure hasn't happened as much and so we've not gone out of our way to add more debug information to make it more clear to users.
What server is being used? Is there a reverse (server-side) proxy involved?
|
seems to be using a reverse proxy yes |
I spoke to the dev he said he may need to add http2 to this line |
Seems like the problem has been tracked down. @mandelmonkey, you can comment and we can reopen the issue if things don't work out. |
Hi, I am trying to do exactly the same. |
Please answer these questions before submitting your issue.
What version of gRPC are you using?
1.16.1
What did you expect to see?
Connecting successful over TOR
am trying to connect via GRPC to a server over TOR
Currently I used the following code to connect to the clear text version or the server but now I would like to do the same over TOR in JAVA
Is it just a matter of using the onion address and port? I tried removing TLS but no luck I get an "UNAVAILABLE" error
any ideas? I am using ORBOT SOCKS Proxy running on the android device
The text was updated successfully, but these errors were encountered: