# LNbits LNURLw not working

**URL:** <https://community.umbrel.com/t/lnbits-lnurlw-not-working/7771>\
**Category:** Support and Troubleshooting\
**Created:** [May 19, 2022, 10:17pm UTC](https://community.umbrel.com/t/lnbits-lnurlw-not-working/7771 "2022-05-19T22:17:24Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eluc](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.umbrel.com/eluc/32/1883_2.png) [@Eluc](https://community.umbrel.com/u/Eluc)\
**Post date:** [May 19, 2022, 10:17pm UTC](https://community.umbrel.com/t/lnbits-lnurlw-not-working/7771/1 "2022-05-19T22:17:24Z")

</div>

Hi, I try to generate a LNURLw to load it on a NFC tag, as far as I know only LNbits can do that. I tried in my LNbits from Umbrel using clearnet https URL and everything in LNbits work except generating a LNURLw. It’s like it fail to generate as you see a new line where should be the list of generated LNURLw but it’s empty and disapear on refresh.  
If I try on [lnbits.com](http://lnbits.com) demo server it works fine. So is it related to Umbrel? Or has Umbrel an old version of LNbits, can I manually update it?

EDIT:  
More detail on the setup.  
Umbrel Version 0.4.18  
LNbits version 0.8.0  
Clearnet over external network (LTE, other location, Tor,…) everything works in LNbits exept LNURLw generation.  
Onion (over Tor), LNURLw generation works.

Steps I did:

1. Open LNbits over clearnet
2. Open an existing wallet in LNbits
3. Add LNURLw extension
4. Click either quick vouchers or advanced withdrawal links
5. The new created link does not appear below (an empty line with the 3 icons links appear but the rest of the line is empty, no link work)
6. Open LNbits over onion
7. All the links I tried to create are then visible on the LNURLw extension page.

---

<div class="post-metadata">

**Author:** ![DarthCoin](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.umbrel.com/darthcoin/32/1628_2.png) [@DarthCoin](https://community.umbrel.com/u/DarthCoin)\
**Post date:** [May 20, 2022, 8:53am UTC](https://community.umbrel.com/t/lnbits-lnurlw-not-working/7771/2 "2022-05-20T08:53:48Z")

</div>

Are you accessing your lnbits instance from the same LAN as your node?  
Use an external internet connection when you access your local lnbits instance (not using same internet connection as your node). For example a 4G mobile connection.

I had the same issue until I realized that I am in a loop.  
If you can access just fine your lnbits page using the clearnet address, nothing is wrong with your lnbits or umbrel.

Here I posted on github LNbits, all the story, to be documented

> <https://github.com/lnbits/lnbits/issues/597>
>
> \### Description / environment
> 
> Umbrel (behind Tor) v 0.4.15 (no latest LNbits …version, I don't know which version).
> Added reverse proxy nginx for LNbits app, certificate, port 443 works fine.
> Can connect Zeus / BW / Alby, make payments, create invoices and pay them from other wallets OK.
> This LNbits instance is even connected to a Wordpress Woocommerce shop (\[with this plugin\](https://wordpress.org/plugins/lightning-payment-gateway-lnbits/)) and works just fine.
> (sorry I can't dox the real domain name/IP here, yet, I can provide real ones on PM for devs if they want to investigate)
> 
> \### Error behavior
> 
> Only when I scan a LNURL (pay or withdraw) QR code from this LNbits, it return this error:
> \- scanning with SBW wallet get this error
> \`\`\`
> "error from vendor" 
> java.net.ConnectException: 
> Failed to connect to lnbits.my-domain.com/\<my public IP\>:443
> \`\`\`
> \- scanning with Blixt wallet, says \`network error\`, no further explanation
> \- scanning with Zeus, I get: \`lnbits.my-domain.com says https://lnbits.my-domain.com/lnurlp/api/v1/lnurl/6 returned error: Network request failed\`
> \- scanning with Bluewallet, says \`network error\`
> 
> \### More steps I've done
> \- copied the LNURL (clicked the button "copy LNURL") and paste it in any other wallet and paid. Worked just fine
> \- copied the LNURL (clicked the button "copy LNURL") and paste it in https://lnurl.fiatjaf.com/codec/. Returned the correct URI \`https://lnbits.domain.com/lnurlp/api/v1/lnurl/4\`
> \- copied the LNURL (clicked the button "copy LNURL") and paste it in any website for QR code generator, as text or web link and then scanned the QR code with 2-3 wallet apps. The result is \`java.net.ConnectException: Failed to connect to lnbits.my-domain.com/\<my public IP\>:443\`
> \- scanned the QR with a normal mobile bar code scanner app, it return the correct LNURL code (not URI)
> 
> \### Additional info
> Here is my nginx conf if this can help:
> \`\`\`
> server {
> listen 443 ssl;
> server\_name lnbits.my-domain.com;
> access\_log /var/log/nginx/reverse-access.log;
> error\_log /var/log/nginx/reverse-error.log;
> 
> location / {
> proxy\_pass http://10.21.21.29:3007;
> proxy\_set\_header Host $host;
> proxy\_set\_header X-Real-IP $remote\_addr; # I tried also without this line, same result
> proxy\_set\_header X-Forwarded-For $proxy\_add\_x\_forwarded\_for;
> # proxy\_set\_header X-Forwarded-Proto $scheme; (I commented this line because was returning an small error testing the conf)
> proxy\_set\_header Upgrade $http\_upgrade;
> proxy\_set\_header Connection ‘upgrade’;
> proxy\_set\_header X-Forwarded-Proto https;
> proxy\_http\_version 1.1;
> }
> 
> ssl on;
> ssl\_certificate /etc/letsencrypt/live/lnbits.my-domain.com/fullchain.pem;
> ssl\_certificate\_key /etc/letsencrypt/live/lnbits.my-domain.com/privkey.pem;
> }
> \`\`\`

---

<div class="post-metadata">

**Author:** ![Eluc](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.umbrel.com/eluc/32/1883_2.png) [@Eluc](https://community.umbrel.com/u/Eluc)\
**Post date:** [May 20, 2022, 8:11pm UTC](https://community.umbrel.com/t/lnbits-lnurlw-not-working/7771/3 "2022-05-20T20:11:29Z")

</div>

Thanks @DarthCoin for the link but I don’t think I have the same issue. I tried from Tor Browser with clearnet URL and from Firefox mobile over LTE, it’s always the same issue. All other extension work fine and can generate LNURLp for example.  
I commented [this open issue on GitHub](https://github.com/lnbits/lnbits-legend/issues/612) as it seams to be the same as mine but so far nobody commented.

Here is what happen when I try to create one link:  
 ![image](https://canada1.discourse-cdn.com/flex030/uploads/getumbrel/original/2X/8/89c21373b7a72df09ed264395202c3135bacd076.png)

---

<div class="post-metadata">

**Author:** ![DarthCoin](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.umbrel.com/darthcoin/32/1628_2.png) [@DarthCoin](https://community.umbrel.com/u/DarthCoin)\
**Post date:** [May 20, 2022, 8:42pm UTC](https://community.umbrel.com/t/lnbits-lnurlw-not-working/7771/4 "2022-05-20T20:42:05Z")

</div>

Then must be something wrong with lnbits version that Umbrel updated in 0.4.18  
From then Lnbits did other updates, but not sure if this was fixed.

I run lnbits with umbrel but I did not update my umbrel to 0.4.18 (I am still on 0.4.14) because I update ONLY when some core or LN is updated or important apps I use are updated (RTL, TH, lnbits).  
So my instance is not affected.

I will post your issue in lnbits telegram group to see what devs says about this.

Please if you can edit that issue and post more details:

- umbrel version
- lnbits version (see in apps store in umbrel)
- enviornment tor or clearnet, both
- steps you did

So devs can understand what is happening. Otherwise they can’t respond to something that do not understand.

---

<div class="post-metadata">

**Author:** ![Eluc](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.umbrel.com/eluc/32/1883_2.png) [@Eluc](https://community.umbrel.com/u/Eluc)\
**Post date:** [May 20, 2022, 8:57pm UTC](https://community.umbrel.com/t/lnbits-lnurlw-not-working/7771/5 "2022-05-20T20:57:00Z")

</div>

That’s very strange, the only thing I didn’t tried yet is to access via onion (I did try Clearnet via Tor Browser), and here I see all the vouchers I did create by trying several times.  
I will edit the first my post above, thanks for the support!

Edit: now I have another issue in what I try to finally achieve, write the LNURLw on a NFC tag. LNURLw are too large for my NFC tag, the link are about 200 bytes, my tags (very old back of the drawer) tags accept 168 bytes, I need to shop for new. The adventure continues.

---

<div class="post-metadata">

**Author:** ![Chuck3CZ](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.umbrel.com/chuck3cz/32/2840_2.png) [@Chuck3CZ](https://community.umbrel.com/u/Chuck3CZ)\
**Post date:** [May 31, 2022, 11:26pm UTC](https://community.umbrel.com/t/lnbits-lnurlw-not-working/7771/6 "2022-05-31T23:26:23Z")

</div>

I have the same issue with LNbits

- Umbrel 0.4.18
- 0.8.0
- clearnet

LNbits writes: LNURLs need https, i am connected over https,  
 ![Snímek obrazovky 2022-06-01 v 1.12.27](https://canada1.discourse-cdn.com/flex030/uploads/getumbrel/original/2X/0/090517156aa470e39a9b61c3c9a0fa621b91016d.png)

Every LNURLs plugin(p, w, creating sats dice, etc.) write this. I scan LNURLs with Phoenix, BlueWallet and Wallet of Satoshi, and it writes: P - Not looks like LNURL, BW - bad response from server, WoS - LNURL processing problem

---

<div class="post-metadata">

**Author:** ![CovertCoin](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.umbrel.com/covertcoin/32/2912_2.png) [@CovertCoin](https://community.umbrel.com/u/CovertCoin)\
**Post date:** [June 10, 2022, 4:44am UTC](https://community.umbrel.com/t/lnbits-lnurlw-not-working/7771/7 "2022-06-10T04:44:03Z")

</div>

Please help lnbits isnt nice hash isnt im down the only money i had  
**Date** :

2022-06-08 03:05 (2 days ago)

**Description** :

Nicehash Deposit Invoice

**Amount** :

-1150000.000

**Fee** :

-34500.000

**Payment hash** :

f0d880afb7d5aa3ee3bbc4798fba3354183a7a34019bda5cd1289b561e1daedf

@DarthCoin I’ll give you what you ask for out of the 400 $ please ur a god with this stuff  
ill send whatever info you need  
api etc… ID … ![Capture1](https://canada1.discourse-cdn.com/flex030/uploads/getumbrel/original/2X/a/a2a86e1a2a8a29d5329e729fc15a2878ab0569a0.png)

---

<div class="post-metadata">

**Author:** ![TheFury](https://avatars.discourse-cdn.com/v4/letter/t/57b2e6/32.png) [@TheFury](https://community.umbrel.com/u/TheFury)\
**Post date:** [October 12, 2024, 12:04am UTC](https://community.umbrel.com/t/lnbits-lnurlw-not-working/7771/8 "2024-10-12T00:04:27Z")

</div>

I’m committing first degree thread necromancy here but I’m having the same issue on Umbrel 1.2.2 and LNBits 0.12.11, but this time accessing clearnet via the Cloudflare Tunnel app. Did you ever figure out a fix?

# EDIT

Ok I managed to figure this out after another rabbit hole. I detailed the solution in [this reply to another thread](https://community.umbrel.com/t/how-to-configure-umbrel-lnbits-app-without-tor/604/48).

---

<div class="post-metadata">

**Author:** ![Eluc](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.umbrel.com/eluc/32/1883_2.png) [@Eluc](https://community.umbrel.com/u/Eluc)\
**Post date:** [October 21, 2024, 9:23am UTC](https://community.umbrel.com/t/lnbits-lnurlw-not-working/7771/9 "2024-10-21T09:23:34Z")

</div>

Good that you solved it, I didn’t answer first as I don’t use cloudflare and to be honest I was sick to wait for umbrel to update lnbits that was always 1 or 2 versions behind. I installed my own instant on another machine.
