LightningTipBot icon indicating copy to clipboard operation
LightningTipBot copied to clipboard

Lightning Address and LNURL does not work

Open ChuckNorrison opened this issue 2 years ago • 3 comments

Iam running the LightningTipBot (v0.5) on my Raspiblitz (v1.8.0) based on LNBits (v0.9.4).

LNBits is forwarded to Clearnet on Port 443 (https). If a LightningTipBot user on Telegram go to /advanced, he gets shown the Lightning Address like [email protected] or a LNURL decoded as https://mydomain.org/.well-known/lnurlp/0x7fa3a123456cb7fa\

If try to make a Payment, errors are shown in LightningTipBot logs:

level=warning msg="[HandleLNURL] Error: Get "[https://mydomain.org/.well-known/lnurlp/0x7fa3a123456cb7fa](https://mydomain.org/.well-known/lnurlp/0x7fa3a123456cb7fa%5C)": socks connect tcp 127.0.0.1:9996->mydomain.org:443: dial tcp 127.0.0.1:9996: connect: connection refused"

I can not find a listening lnurl server on 9996 via netstat.

ChuckNorrison avatar Nov 25 '22 10:11 ChuckNorrison

hey @ChuckNorrison, thanks for this issue. I made the socks connection optional. Please try the latest version

I recommend using an empty proxy configuration like this

bot:
  admin_api_host: "localhost:6060"
  socks_proxy:
    host:
    username:
    password:
  tor_proxy:
    host:

The bot should be able to resolve all non .onion LNURL's

gohumble avatar Nov 28 '22 18:11 gohumble

Thanks, but i still can not find a service on port 9996 and if i try to pay lnurl, there is an error thrown. In webbrowser it gives me:

{"status":"ERROR","reason":"Address not found."}

In journal i can find:

Nov 28 20:33:20 raspberrypi LightningTipBot[1849180]: time="2022-11-28 20:33:20" level=debug msg="[HandleLNURL] rawurl: h.t.t.p.s://mydomain.org/.well-known/lnurlp/0x7fa3a123456cb7fa" Nov 28 20:33:21 raspberrypi LightningTipBot[1849180]: time="2022-11-28 20:33:21" level=warning msg="[HandleLNURL] Error: Address not found."

ChuckNorrison avatar Nov 28 '22 19:11 ChuckNorrison

I have the same issue, but maybe I only configured it wrong. In my setup I use a reverse proxy that points to the machine with LND and LightningTipBot: https://lnbits.myfancydomain.com --> <Proxy> --> http://192.168.4.101:5000 (LNBits) my config: (only replaced domain, keys and ids with dummy values) bot: socks_proxy: host: 127.0.0.1:9996 username: test password: username tor_proxy: host: http_proxy: "" lnurl_public_host_name: "lnbits.myfancydomain.com" lnurl_server: "https://lnbits.myfancydomain.com" lnurl_image: true admin_api_host: 0.0.0.0:6060 telegram: message_dispose_duration: 10 api_key: "xxx" lnbits: url: "http://0.0.0.0:5000" admin_key: "xxx" admin_id: "xxx" webhook_server: "http://0.0.0.0:5588" lnbits_public_url: "https://lnbits.myfancydomain.com" database: db_path: "data/bot.db" buntdb_path: "data/bunt.db" transactions_path: "data/transactions.db" shop_buntdb_path: "data/shop.db" groupsdb_path: "data/groups.db" generate: open_ai_bearer_token: "token_here" dalle_key: "asd" dalle_price: 1000 worker: 2 nostr: private_key: "hex private key here"

when I go to /advanced he shows the lightning adress like: Anonymous Lightning address: 0x184444d011b2fsf1@ (nothing after the @) and the LNURL that he shows is invalid

kieselbert avatar Feb 16 '23 21:02 kieselbert