-
-
Notifications
You must be signed in to change notification settings - Fork 327
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
LNURLp issue with Phoenixd backend by bitcarrot #2478
Comments
I can sign this. I tested a few extensions with my phoenixd backed lnbits. LNURLp seems to be not working. See here. |
here are my error messages from container logs: During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/root/.cache/pypoetry/virtualenvs/lnbits-9TtSrW0h-py3.10/lib/python3.10/site-packages/starlette/middleware/errors.py", line 164, in call
File "/root/.cache/pypoetry/virtualenvs/lnbits-9TtSrW0h-py3.10/lib/python3.10/site-packages/starlette/middleware/base.py", line 191, in call
File "/root/.cache/pypoetry/virtualenvs/lnbits-9TtSrW0h-py3.10/lib/python3.10/site-packages/slowapi/middleware.py", line 136, in dispatch
File "/root/.cache/pypoetry/virtualenvs/lnbits-9TtSrW0h-py3.10/lib/python3.10/site-packages/starlette/middleware/base.py", line 165, in call_next
File "/root/.cache/pypoetry/virtualenvs/lnbits-9TtSrW0h-py3.10/lib/python3.10/site-packages/starlette/middleware/base.py", line 151, in coro
File "/root/.cache/pypoetry/virtualenvs/lnbits-9TtSrW0h-py3.10/lib/python3.10/site-packages/starlette/middleware/base.py", line 191, in call
File "/app/lnbits/middleware.py", line 215, in block_allow_ip_middleware
File "/root/.cache/pypoetry/virtualenvs/lnbits-9TtSrW0h-py3.10/lib/python3.10/site-packages/starlette/middleware/base.py", line 165, in call_next
File "/root/.cache/pypoetry/virtualenvs/lnbits-9TtSrW0h-py3.10/lib/python3.10/site-packages/starlette/middleware/base.py", line 151, in coro
File "/root/.cache/pypoetry/virtualenvs/lnbits-9TtSrW0h-py3.10/lib/python3.10/site-packages/starlette/middleware/base.py", line 191, in call
File "/app/lnbits/middleware.py", line 215, in block_allow_ip_middleware
File "/root/.cache/pypoetry/virtualenvs/lnbits-9TtSrW0h-py3.10/lib/python3.10/site-packages/starlette/middleware/base.py", line 165, in call_next
File "/root/.cache/pypoetry/virtualenvs/lnbits-9TtSrW0h-py3.10/lib/python3.10/site-packages/starlette/middleware/base.py", line 151, in coro
File "/root/.cache/pypoetry/virtualenvs/lnbits-9TtSrW0h-py3.10/lib/python3.10/site-packages/starlette/middleware/base.py", line 191, in call
File "/app/lnbits/middleware.py", line 230, in first_install_middleware
File "/root/.cache/pypoetry/virtualenvs/lnbits-9TtSrW0h-py3.10/lib/python3.10/site-packages/starlette/middleware/base.py", line 165, in call_next
File "/root/.cache/pypoetry/virtualenvs/lnbits-9TtSrW0h-py3.10/lib/python3.10/site-packages/starlette/middleware/base.py", line 151, in coro
File "/root/.cache/pypoetry/virtualenvs/lnbits-9TtSrW0h-py3.10/lib/python3.10/site-packages/starlette/middleware/base.py", line 191, in call
File "/app/lnbits/middleware.py", line 230, in first_install_middleware
File "/root/.cache/pypoetry/virtualenvs/lnbits-9TtSrW0h-py3.10/lib/python3.10/site-packages/starlette/middleware/base.py", line 165, in call_next
File "/root/.cache/pypoetry/virtualenvs/lnbits-9TtSrW0h-py3.10/lib/python3.10/site-packages/starlette/middleware/base.py", line 151, in coro
File "/app/lnbits/middleware.py", line 125, in call
File "/app/lnbits/middleware.py", line 61, in call
File "/root/.cache/pypoetry/virtualenvs/lnbits-9TtSrW0h-py3.10/lib/python3.10/site-packages/starlette/middleware/sessions.py", line 83, in call
File "/app/lnbits/middleware.py", line 104, in call
File "/root/.cache/pypoetry/virtualenvs/lnbits-9TtSrW0h-py3.10/lib/python3.10/site-packages/starlette/middleware/gzip.py", line 24, in call
File "/root/.cache/pypoetry/virtualenvs/lnbits-9TtSrW0h-py3.10/lib/python3.10/site-packages/starlette/middleware/gzip.py", line 44, in call
File "/root/.cache/pypoetry/virtualenvs/lnbits-9TtSrW0h-py3.10/lib/python3.10/site-packages/starlette/middleware/cors.py", line 83, in call
File "/root/.cache/pypoetry/virtualenvs/lnbits-9TtSrW0h-py3.10/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 62, in call
File "/root/.cache/pypoetry/virtualenvs/lnbits-9TtSrW0h-py3.10/lib/python3.10/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
File "/root/.cache/pypoetry/virtualenvs/lnbits-9TtSrW0h-py3.10/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
File "/root/.cache/pypoetry/virtualenvs/lnbits-9TtSrW0h-py3.10/lib/python3.10/site-packages/starlette/routing.py", line 758, in call
File "/root/.cache/pypoetry/virtualenvs/lnbits-9TtSrW0h-py3.10/lib/python3.10/site-packages/starlette/routing.py", line 778, in app
File "/root/.cache/pypoetry/virtualenvs/lnbits-9TtSrW0h-py3.10/lib/python3.10/site-packages/starlette/routing.py", line 299, in handle
File "/root/.cache/pypoetry/virtualenvs/lnbits-9TtSrW0h-py3.10/lib/python3.10/site-packages/starlette/routing.py", line 79, in app
File "/root/.cache/pypoetry/virtualenvs/lnbits-9TtSrW0h-py3.10/lib/python3.10/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
File "/root/.cache/pypoetry/virtualenvs/lnbits-9TtSrW0h-py3.10/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
File "/root/.cache/pypoetry/virtualenvs/lnbits-9TtSrW0h-py3.10/lib/python3.10/site-packages/starlette/routing.py", line 74, in app
File "/root/.cache/pypoetry/virtualenvs/lnbits-9TtSrW0h-py3.10/lib/python3.10/site-packages/fastapi/routing.py", line 299, in app
File "/root/.cache/pypoetry/virtualenvs/lnbits-9TtSrW0h-py3.10/lib/python3.10/site-packages/fastapi/routing.py", line 294, in app
File "/root/.cache/pypoetry/virtualenvs/lnbits-9TtSrW0h-py3.10/lib/python3.10/site-packages/fastapi/routing.py", line 191, in run_endpoint_function
File "/app/lnbits/extensions/lnurlp/lnurl.py", line 91, in api_lnurl_callback
File "/app/lnbits/core/services.py", line 154, in create_invoice
File "/app/lnbits/wallets/phoenixd.py", line 91, in create_invoice
lnbits.wallets.base.UnsupportedError: description_hash 2024-05-08 07:34:04.81 | ERROR | Exception: description_hash 2024-05-08 07:34:04.81 | INFO | 31.19.129.130:0 - "GET /lnurlp/api/v1/lnurl/cb/nzdP83?amount=1000&comment=test HTTP/1.1" 500 2024-05-08 07:34:04.81 | ERROR | Exception in ASGI application 2024-05-08 07:34:06.16 | INFO | 31.19.129.130:0 - "GET /lnurlp/api/v1/links?all_wallets=true HTTP/1.1" 200 2024-05-08 07:34:26.12 | INFO | 31.19.129.130:0 - "GET /lnurlp/api/v1/links?all_wallets=true HTTP/1.1" 200 |
in if description_hash or unhashed_description:
raise UnsupportedError("description_hash") Commenting those 2 lines seems to solve the problem, but this might need further tests. |
Thanks. Great to see progress is beeing made! |
bitkarrot/lnbits-phoenixd#1 (comment) still this Error is logs:
lnbits.wallets.base.UnsupportedError: description_hash 2024-05-16 19:10:37.48 | ERROR | Exception: description_hash 2024-05-16 19:10:37.48 | INFO | 31.19.129.130:0 - "GET /lnurlp/api/v1/lnurl/cb/6h9JAb?amount=21000&comment= HTTP/1.1" 500 2024-05-16 19:10:37.48 | ERROR | Exception in ASGI application 2024-05-16 19:10:41.80 | INFO | 31.19.129.130:0 - "GET /lnurlp/api/v1/links?all_wallets=true HTTP/1.1" 200 2024-05-16 19:11:01.81 | INFO | 31.19.129.130:0 - "GET /lnurlp/api/v1/links?all_wallets=true HTTP/1.1" 200 |
Can solve the issue when replacing phoenix.py in lnbits/wallets with this file: |
When using the new lnbits integration by bitcarrot https://github.com/bitkarrot/lnbits-phoenixd the Lnurlp extension in lnbits does not work. I guess this is due to phoenixd inability to process Lnurl strings or could it be something else?
Alby for instance opens the pay string, but when trying to pay i get an error message:
The text was updated successfully, but these errors were encountered: