Git Product home page Git Product logo

System.MissingMethodException: 'Method not found: 'System.Threading.Tasks.Task`1<System.Net.Http.HttpResponseMessage> Flurl.Http.GeneratedExtensions.PostJsonAsync(Flurl.Http.IFlurlRequest, System.Object, System.Threading.CancellationToken, System.Net.Http.HttpCompletionOption)'.' about vendr-payment-provider-quickpay HOT 3 OPEN

ClausTS avatar ClausTS commented on June 18, 2024
System.MissingMethodException: 'Method not found: 'System.Threading.Tasks.Task`1 Flurl.Http.GeneratedExtensions.PostJsonAsync(Flurl.Http.IFlurlRequest, System.Object, System.Threading.CancellationToken, System.Net.Http.HttpCompletionOption)'.'

from vendr-payment-provider-quickpay.

Comments (3)

bjarnef avatar bjarnef commented on June 18, 2024

Hi @ClausTS

I guess this is failing when going to payments from checkout, which make a POST request to /payments endpoint: https://learn.quickpay.net/tech-talk/api/services/#POST-payments---format-

If you have a fork of the repository locally and debugging on this, could you try to set a breakpoint it the catch block and continue execution of the code. I think you should be able to see a detailed error response from QuickPay then.

from vendr-payment-provider-quickpay.

ClausTS avatar ClausTS commented on June 18, 2024

Hi @bjarnef,

thank you for your quick reply. I think we're misunderstanding eachother, so I'll try to elaborate - perhaps my explanation is the failing part. 😊

I don't get to the catch of the FlurlHttpException, it's the func.Invoke(req) above that fails.

I have a screenshot from the QuickPayCheckoutPaymentProvider.cs file, that perhaps can help.

The problem arises in line 119, and is then caught on line 145, with the errormessage from subject.

image

from vendr-payment-provider-quickpay.

bjarnef avatar bjarnef commented on June 18, 2024

Okay, then I believe that you in the catch block here https://github.com/vendrcontrib/vendr-payment-provider-quickpay/blob/v2/dev/src/Vendr.Contrib.PaymentProviders.QuickPay/QuickPayCheckoutPaymentProvider.cs#L145 should be able to see an detailed error message.

If not you could try grabbing the JSON from the Flurl request and try a manually POST via e.g. Postman.

from vendr-payment-provider-quickpay.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.