Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Android app not connecting gRPC to BTCPayServer #222

Open
vanjaime opened this issue Jul 26, 2020 · 7 comments · Fixed by #242
Open

Android app not connecting gRPC to BTCPayServer #222

vanjaime opened this issue Jul 26, 2020 · 7 comments · Fixed by #242

Comments

@vanjaime
Copy link

Getting an error message in Android connecting to a lnd server via TOR.

Lnd server is reachable via TOR hidden service.

Zap version 0.3.0 Beta
Build 18

Screenshot_20200725-213739
Is it possible to connect without certificate.l?

@michaelWuensch
Copy link
Contributor

Hi there, thanks for the report.
Is your gRPC interface reachable under Port 80?
Zap Android only supports connecting with gRPC which is normally port 10009. REST (normally port 8080) is not supported.

@vanjaime
Copy link
Author

vanjaime commented Aug 1, 2020

This is how my server is building the config json
image
Note the certificate Thumprint is what I think is causing the problem

@michaelWuensch
Copy link
Contributor

Hi,
unfortunatelly I have never tried to connect to a btc pay server behind tor.
As far as I know, btc pay does not use self signed certificates and therefore the certificate is not included in the connect data.
But the gRPC channels we make still requires SSL. Is there any possibility to acitvate SSL for your btc pay server and then try again?

@michaelWuensch
Copy link
Contributor

Sorry, this got autoclosed when merging the PR it was mentioned in.
Most likely the issue should be fixed though with this PR.
If you could test it it would be awesome. I'll make a release today, or you can build it yourself of course.

@michaelWuensch
Copy link
Contributor

michaelWuensch commented Aug 28, 2020

The new version is now rolled out in the app store as well. Would be great if you could test it and give feedback.

@vanjaime
Copy link
Author

Hi Thanks,

Just tested and few things I noticed.

-ZAP won't read QR code generated by BTCPayserver
-When copy paste the config=... generated by BTCPayServer it will not connect
-When copied the full content of config=... file and paste it directly it seems it finds the TOR hidden service but few seconds later error message "Connection failed. Handshake failed"

@michaelWuensch
Copy link
Contributor

@vanjaime
Thanks for testing again.
I think I have to setup a BTCPayserver myself for easier debugging.
I'll let you know when I made some progress.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants