question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Lightning address HTTP/500

See original GitHub issue

Describe the bug

My Lightning address does not work. I have created a lightning address in my store (admin@domain.com), but when sending, lntxbot says: 🔴 Error: failed to fetch lnurl params: unknown response tag. If visit domain.com/.well-known/lnurlp/admin I get a HTTP 500 error.

To Reproduce the bug Steps to reproduce the reported bug:

  1. Open site in BTCPayserver, navigate to Lightning Address in the menu, create new address (admin@domain.com)
  2. Visit the .well-known/lnurlp page or try to send to the address
  3. Fail! (see logs below 😉 ).

Expected behavior Me being able to send to the address!

Screenshots image image

Your BTCPay Environment (please complete the following information):

  • BTCPay Server Version: © BTCPay Server v1.4.9.0
  • Deployment Method: Manual deployment (git clone, checkout tag, build, run)
  • Browser: Firefox

Logs (if applicable)

Apr 21 08:31:18 btcpay run[18541]: fail: Microsoft.AspNetCore.Server.Kestrel: Connection id "0HMH3E4FP4KJM", Request id "0HMH3E4FP4KJM:00000004": An unhandled exception was thrown by the application.
Apr 21 08:31:18 btcpay run[18541]: BTCPayServer.BitpayHttpException: 04/21/2022 08:31:18:Info Creation of invoice starting
Apr 21 08:31:18 btcpay run[18541]: 04/21/2022 08:31:18:Info BTC_SAT: The rating rule is (coingecko(BTC_SAT)) * (0.995, 1.005)
Apr 21 08:31:18 btcpay run[18541]: 04/21/2022 08:31:18:Info BTC_SAT: The evaluated rating rule is (ERR_RATE_UNAVAILABLE(coingecko, BTC_SAT)) * (0.995, 1.005)
Apr 21 08:31:18 btcpay run[18541]: 04/21/2022 08:31:18:Error BTC_SAT: Rate rule error (RateUnavailable)
Apr 21 08:31:18 btcpay run[18541]: 04/21/2022 08:31:18:Info BTC_EUR: The rating rule is (coingecko(BTC_EUR)) * (0.995, 1.005)
Apr 21 08:31:18 btcpay run[18541]: 04/21/2022 08:31:18:Info BTC_EUR: The evaluated rating rule is (38336.474) * (0.995, 1.005)
Apr 21 08:31:18 btcpay run[18541]:    at BTCPayServer.Controllers.UIInvoiceController.CreateInvoiceCoreRaw(InvoiceEntity entity, StoreData store, IPaymentFilter invoicePaymentMethodFilter, String[] additionalSearchTerms, CancellationToken cancellationToken) in /opt/btcpayserver/BTCPayServer/Controllers/UIInvoiceController.cs:line 310
Apr 21 08:31:18 btcpay run[18541]:    at BTCPayServer.Controllers.UIInvoiceController.CreateInvoiceCoreRaw(CreateInvoiceRequest invoice, StoreData store, String serverUrl, List`1 additionalTags, CancellationToken cancellationToken) in /opt/btcpayserver/BTCPayServer/Controllers/UIInvoiceController.cs:line 204
Apr 21 08:31:18 btcpay run[18541]:    at BTCPayServer.UILNURLController.GetLNURL(String cryptoCode, String storeId, String currencyCode, Nullable`1 min, Nullable`1 max, Func`1 internalDetails) in /opt/btcpayserver/BTCPayServer/Controllers/UILNURLController.cs:line 247
Apr 21 08:31:18 btcpay run[18541]:    at BTCPayServer.UILNURLController.ResolveLightningAddress(String username) in /opt/btcpayserver/BTCPayServer/Controllers/UILNURLController.cs:line 196
Apr 21 08:31:18 btcpay run[18541]:    at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
Apr 21 08:31:18 btcpay run[18541]:    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
Apr 21 08:31:18 btcpay run[18541]:    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
Apr 21 08:31:18 btcpay run[18541]:    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
Apr 21 08:31:18 btcpay run[18541]:    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
Apr 21 08:31:18 btcpay run[18541]:    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
Apr 21 08:31:18 btcpay run[18541]:    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
Apr 21 08:31:18 btcpay run[18541]:    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ExceptionContextSealed context)
Apr 21 08:31:18 btcpay run[18541]:    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
Apr 21 08:31:18 btcpay run[18541]:    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
Apr 21 08:31:18 btcpay run[18541]:    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
Apr 21 08:31:18 btcpay run[18541]:    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
Apr 21 08:31:18 btcpay run[18541]:    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
Apr 21 08:31:18 btcpay run[18541]:    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
Apr 21 08:31:18 btcpay run[18541]:    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
Apr 21 08:31:18 btcpay run[18541]:    at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
Apr 21 08:31:18 btcpay run[18541]:    at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
Apr 21 08:31:18 btcpay run[18541]:    at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
Apr 21 08:31:18 btcpay run[18541]:    at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
Apr 21 08:31:18 btcpay run[18541]:    at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
Apr 21 08:31:18 btcpay run[18541]:    at BTCPayServer.Hosting.BTCPayMiddleware.Invoke(HttpContext httpContext) in /opt/btcpayserver/BTCPayServer/Hosting/BTCpayMiddleware.cs:line 101
Apr 21 08:31:18 btcpay run[18541]:    at BTCPayServer.Hosting.GreenfieldMiddleware.Invoke(HttpContext httpContext) in /opt/btcpayserver/BTCPayServer/Hosting/GreenfieldMiddleware.cs:line 50
Apr 21 08:31:18 btcpay run[18541]:    at Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context)
Apr 21 08:31:18 btcpay run[18541]:    at BTCPayServer.Hosting.HeadersOverrideMiddleware.Invoke(HttpContext httpContext) in /opt/btcpayserver/BTCPayServer/Hosting/HeadersOverrideMiddleware.cs:line 30
Apr 21 08:31:18 btcpay run[18541]:    at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)

Setup Parameters

I could not find the btcpay-setup script… Sorry!

Additional context

This has not worked for me yet (eg it did not break)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
Kukkscommented, Apr 21, 2022

Please use SATS instead of SAT

On Thu, Apr 21, 2022 at 3:14 PM AbelLykens @.***> wrote:

Yeah looks like it. It’s odd BTC_SAT would need conversion. And ave no clue why any conversion would actually be needed at all for lightning addresses. Oh well. My regular webshop works: [image: image] https://user-images.githubusercontent.com/47113175/164465586-f29e2214-8e4b-4f5c-8554-7aaa29f5e70e.png

— Reply to this email directly, view it on GitHub https://github.com/btcpayserver/btcpayserver/issues/3659#issuecomment-1105191352, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAN357QP3KI3CGMXEKUPZ43VGFIC7ANCNFSM5T6QBQ2Q . You are receiving this because you are subscribed to this thread.Message ID: @.***>

0reactions
AbelLykenscommented, Apr 21, 2022

That works! Thanks @Kukks !

Read more comments on GitHub >

github_iconTop Results From Across the Web

Status 500, Internal server error when calling Apex from LWC
I'm getting a status 500, internal error when calling an Apex function from my LWC. I'm able to provoke the error whenever the...
Read more >
Claiming ?lightning=lnurl gives HTTP 500 internal server ...
Steps to reproduce. Try to claim an lnurl of the form ?lightning=lnurl... Click on press to claim bitcoin ; Expected behaviour. Claim bitcoin ......
Read more >
Internal Server Error 500
When trying to send data to Salesforce from the third-party site in the console of the site, an error occurs Internal Server Error...
Read more >
How to Fix a 500 Internal Server Error on Your Site
The 500 Internal Server Error status code occurs when the server encounters an error that prevents it from fulfilling the request.
Read more >
I am getting HTTP 500 Server Error when I am trying to ...
The 500 error means the server script encountered an error. What do your logs (on the server) show? There should be a filename...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found