raspiblitz icon indicating copy to clipboard operation
raspiblitz copied to clipboard

LNbits: LNURLp not working

Open rene78 opened this issue 2 years ago • 12 comments

I have set up a LNURLp link in LNbits but somehow I am not able to send any funds to this link. Tried to send with BlueWallet, Zeus and RaspiBlitz WebUI. The invoice format seems to be wrong.

image

v1.8.0 over Tor

rene78 avatar Jul 31 '22 09:07 rene78

Maybe somehow related to https://github.com/rootzoll/raspiblitz/issues/3129?

rene78 avatar Jul 31 '22 09:07 rene78

@fusion44 can you take a look for the LNbits team whats the problem here?

rootzoll avatar Aug 03 '22 16:08 rootzoll

Hey @rene78, please paste the LNURL here so we can check.

callebtc avatar Aug 04 '22 06:08 callebtc

Sure! LNURL1DP68GURN8GHJ7VFEXGHRZD3C9CCZUDFC8G6NQVP39AKXUATJD3CZ7CTSDYHHVVF0D3H82UNV9UCSFF4YH7 image Those are my settings, if it matters at all: image

rene78 avatar Aug 04 '22 07:08 rene78

The LNURL decodes to a local address which can't be reached from outside: https://192.168.0.58:5001/lnurlp/api/v1/lnurl/1

How was this usually solved with the RaspiBlitz @rootzoll or @fusion44? Should this be an onion address?

@rene78 do you use any DNS service to reach your node from the internet?

callebtc avatar Aug 04 '22 07:08 callebtc

@rene78 do you use any DNS service to reach your node from the internet?

No DNS, I use TOR to access apps like "Ride The Lightning".

rene78 avatar Aug 04 '22 07:08 rene78

How was this usually solved with the RaspiBlitz @rootzoll or @fusion44? Should this be an onion address?

This is normally solved by adding a IP2Tor service with LNbits - so that it can be a Letsencrypt-HTTPS reachable from the outside. To retest & improve those options will get more focus again with v1.8.2 release.

rootzoll avatar Aug 10 '22 12:08 rootzoll

Found this error in my lnbits journal if i try to create a new lnurlp link.

sqlite3.OperationalError: table lnurlp.pay_links has no column named fiat_base_multiplier

Iam not using TOR, clearnet only. This looks like a version incompatibility with my existent database.

Fixed my outdated sqlite database here https://github.com/lnbits/lnbits/issues/1047

ChuckNorrison avatar Oct 09 '22 16:10 ChuckNorrison

I have the same problem. I have my node running on an internal network and I have a reverse proxy set up on my router which listens on clearnet IP and proxies it to lnbits on raspiblitz. However when creating a LNURL, it encodes the internal IP address into the LNURL, thus making the lnurl invalid for the outside world. If there was a way how to specify the base URL for lnurl, it would solve the problem, but I'm not sure if that is possible...

Dehumanizer77 avatar Mar 27 '23 14:03 Dehumanizer77

Ok, for anyone with the similar problem, just use

  RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
  RequestHeader set "X-Forwarded-SSL" expr=%{HTTPS}
  ProxyPreserveHost On

in the reverse proxy config for apache, or

    proxy_set_header Host $host;
    proxy_set_header X-Forwarded-Host $host;
    proxy_set_header X-Forwarded-Proto $scheme;

for nginx. Then it works.

Dehumanizer77 avatar Mar 27 '23 14:03 Dehumanizer77

@fusion44 check if still relevent

rootzoll avatar Apr 23 '24 19:04 rootzoll

recommend to push to v1.11.2

geco91 avatar Jun 03 '24 14:06 geco91