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.

Exception on Payment Request

See original GitHub issue

Describe the problem/bug

I created an Payment Request over 0.00060004 BTC. I can open it in the Browser. While pressing “Pay”, nothing happens.

Tested in Edge and Chrome.

Your environment

  • Version of BTCPay Server: v1.0.3.81
  • Deployment method: Docker (generated)
  • Other relevant environment details:

Client Logs

 {description: "An unexpected error occurred invoking 'Pay' on the server.", message: "An unexpected error occurred invoking 'Pay' on the server.", stack: "Error: An unexpected error occurred invoking 'Pay' on the server. at t.callbacks[] (https://pay.lipperts-web.de/bundles/payment-request-bundle-1.min.js?v=9PoXkCmc-B9nIjymn-H0f9nBwoP3Hu1k8_PzGG1XOLU:39:17432) at n.prototype.processIncomingData (https://pay.lipperts-web.de/bundles/payment-request-bundle-1.min.js?v=9PoXkCmc-B9nIjymn-H0f9nBwoP3Hu1k8_PzGG1XOLU:39:18521) at connection.onreceive (https://pay.lipperts-web.de/bundles/payment-request-bundle-1.min.js?v=9PoXkCmc-B9nIjymn-H0f9nBwoP3Hu1k8_PzGG1XOLU:39:14825) at Anonymous function (https://pay.lipperts-web.de/bundles/payment-request-bundle-1.min.js?v=9PoXkCmc-B9nIjymn-H0f9nBwoP3Hu1k8_PzGG1XOLU:39:44191) at s (https://pay.lipperts-web.de/bundles/payment-request-bundle-1.min.js?v=9PoXkCmc-B9nIjymn-H0f9nBwoP3Hu1k8_PzGG1XOLU:39:40951) at Anonymous function (https://pay.lipperts-web.de/bundles/payment-request-bundle-1.min.js?v=9PoXkCmc-B9nIjymn-H0f9nBwoP3Hu1k8_PzGG1XOLU:39:40241) at o (https://pay.lipperts-web.de/bundles/payment-request-bundle-1.min.js?v=9PoXkCmc-B9nIjymn-H0f9nBwoP3Hu1k8_PzGG1XOLU:39:39973) at Anonymous function (https://pay.lipperts-web.de/bundles/payment-request-bundle-1.min.js?v=9PoXkCmc-B9nIjymn-H0f9nBwoP3Hu1k8_PzGG1XOLU:6:145566) at Anonymous function (https://pay.lipperts-web.de/bundles/payment-request-bundle-1.min.js?v=9PoXkCmc-B9nIjymn-H0f9nBwoP3Hu1k8_PzGG1XOLU:6:145437) at h (https://pay.lipperts-web.de/bundles/payment-request-bundle-1.min.js?v=9PoXkCmc-B9nIjymn-H0f9nBwoP3Hu1k8_PzGG1XOLU:6:105606)"}

Server Logs

2019-03-11 06:41:21.786 +00:00 [ERR] Failed to invoke hub method 'Pay'.
System.InvalidOperationException: No service for type 'Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionaryFactory' has been registered.
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
   at Microsoft.AspNetCore.Mvc.Controller.get_TempData()
   at Microsoft.AspNetCore.Mvc.Controller.View(String viewName, Object model)
   at Microsoft.AspNetCore.Mvc.Controller.View(Object model)
   at BTCPayServer.Controllers.PaymentRequestController.ViewPaymentRequest(String id) in /source/Controllers/PaymentRequestController.cs:line 223
   at BTCPayServer.Controllers.PaymentRequestController.PayPaymentRequest(String id, Boolean redirectToInvoice, Nullable`1 amount, CancellationToken cancellationToken) in /source/Controllers/PaymentRequestController.cs:line 232
   at BTCPayServer.PaymentRequest.PaymentRequestHub.Pay(Nullable`1 amount) in /source/PaymentRequest/PaymentRequestHub.cs:line 47
   at Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher`1.ExecuteHubMethod(ObjectMethodExecutor methodExecutor, THub hub, Object[] arguments)
   at Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher`1.Invoke(HubMethodDescriptor descriptor, HubConnectionContext connection, HubMethodInvocationMessage hubMethodInvocationMessage, Boolean isStreamedInvocation)

To Reproduce Steps to reproduce the behavior:

  1. Go to ‘Payment Requests’
  2. Click on ‘Create a new payment request’
  3. Set the amount (0.00060004 BTC or 0.0009001 BTC for example)
  4. Create it
  5. Open it (View)
  6. Click on “Pay”

Expected behavior I get an payment Dialog OR an proper warning.

Actual behavior Nothing happens (except the logs)

Screenshots/Links

Additional context

Regards, lippertsweb

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
NicolasDoriercommented, Mar 11, 2019

Releasing 1.0.8.82 soon… shoudl fix it

0reactions
lippolivcommented, Mar 11, 2019

@NicolasDorier Thanks for the fast help. It works now 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Exception Item: What it is, How it Works, Example
What Is an Exception Item? An exception item is a banking term used to describe a check or other payment that cannot be...
Read more >
Exception Payment Request | Pepperdine University
An Exception Payment Request is required when the department or school does not follow the required procurement procedure.
Read more >
What Is an Exception Item?
An exception item refers to a check or Automated Clearing House (ACH) payment that the financial institution can't process as usual.
Read more >
How to Reduce the Cost of Payment Exceptions ...
Bill Payment Exception (BPE) is usually defined as a situation in which a Biller receives funds from a consumer, but is unable to...
Read more >
Exception Payments Definition: 165 Samples
Exception Payments means payments to deposit accounts or brokerage accounts, payments to settle securities transactions (including, without limitation, stocks, ...
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