Open Closed

Create New Gateway Plan button Throws 404 and does not display Modal #5077


User avatar
0
dmiller1301 created
  • ABP Framework version: v7.1.1
  • UI type: MVC
  • DB provider: MongoDB
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
* web\_92b1bbe6-4]: [14:56:51 INF] Executed action method Volo.Payment.Admin.Plans.PlanAdminController.GetGatewayPlansAsync (Volo.Payment.Admin.HttpApi), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 603.0649ms.
    \[web\_92b1bbe6\-4\]: \[14:56:51 INF\] Executing ObjectResult\, writing value of type 'Volo\.Abp\.Application\.Dtos\.PagedResultDto`1[[Volo.Payment.Plans.GatewayPlanDto, Volo.Payment.Application.Contracts, Version=7.1.1.0, Culture=neutral, PublicKeyToken=null]]'. [web_92b1bbe6-4]: [14:56:51 INF] Executed action Volo.Payment.Admin.Plans.PlanAdminController.GetGatewayPlansAsync (Volo.Payment.Admin.HttpApi) in 613.7214ms [web_92b1bbe6-4]: [14:56:51 INF] Executed endpoint 'Volo.Payment.Admin.Plans.PlanAdminController.GetGatewayPlansAsync (Volo.Payment.Admin.HttpApi)' [web_92b1bbe6-4]: [14:56:51 INF] Request finished HTTP/2 GET https://localhost:44321/api/payment-admin/plans/f3e424cf-9418-5570-396e-3a0b3c3f0b0b/external-plans?filter=&sorting=gateway%20desc&skipCount=0&maxResultCount=10 application/json - - 200 - application/json;+charset=utf-8 629.2627ms [web_92b1bbe6-4]: [14:56:55 INF] Request starting HTTP/2 GET https://localhost:44321/Payment/Plans/GatewayPlans/CreateModal?planId=f3e424cf-9418-5570-396e-3a0b3c3f0b0b - - [web_92b1bbe6-4]: [14:56:55 INF] Start processing HTTP request GET https://localhost:44325/api/abp/application-configuration?IncludeLocalizationResources=False&api-version=1.0 [web_92b1bbe6-4]: [14:56:55 INF] Sending HTTP request GET https://localhost:44325/api/abp/application-configuration?IncludeLocalizationResources=False&api-version=1.0 [web_92b1bbe6-4]: [14:56:55 INF] Received HTTP response headers after 79.1734ms - 200 [web_92b1bbe6-4]: [14:56:55 INF] End processing HTTP request after 79.3466ms - 200 [web_92b1bbe6-4]: [14:56:55 INF] Start processing HTTP request GET https://localhost:44325/api/abp/application-localization?CultureName=en&OnlyDynamics=True&api-version=1.0 [web_92b1bbe6-4]: [14:56:55 INF] Sending HTTP request GET https://localhost:44325/api/abp/application-localization?CultureName=en&OnlyDynamics=True&api-version=1.0 [web_92b1bbe6-4]: [14:56:55 INF] Received HTTP response headers after 118.9503ms - 200 [web_92b1bbe6-4]: [14:56:55 INF] End processing HTTP request after 119.0702ms - 200 [web_92b1bbe6-4]: [14:56:55 INF] Executing endpoint '/Payment/Plans/GatewayPlans/CreateModal' [web_92b1bbe6-4]: [14:56:55 INF] Route matched with {page = "/Payment/Plans/GatewayPlans/CreateModal", action = "", controller = "", area = ""}. Executing page /Payment/Plans/GatewayPlans/CreateModal [web_92b1bbe6-4]: [14:56:55 INF] Skipping the execution of current filter as its not the most effective filter implementing the policy Microsoft.AspNetCore.Mvc.ViewFeatures.IAntiforgeryPolicy [web_92b1bbe6-4]: [14:56:56 INF] Executing handler method Volo.Payment.Admin.Web.Pages.Payment.Plans.GatewayPlans.CreateModalModel.OnGetAsync - ModelState is Valid [web_92b1bbe6-4]: [14:56:56 INF] Start processing HTTP request GET https://localhost:44325/api/payment/gateways/subscription-supported?api-version=1.0 [web_92b1bbe6-4]: [14:56:56 INF] Sending HTTP request GET https://localhost:44325/api/payment/gateways/subscription-supported?api-version=1.0 [web_92b1bbe6-4]: [14:56:56 INF] Received HTTP response headers after 4.9762ms - 404 [web_92b1bbe6-4]: [14:56:56 INF] End processing HTTP request after 5.0949ms - 404 [web_92b1bbe6-4]: [14:56:56 ERR] ---------- RemoteServiceErrorInfo ---------- [web_92b1bbe6-4]: { [web_92b1bbe6-4]: "code": "NotFound", [web_92b1bbe6-4]: "message": "Not Found", [web_92b1bbe6-4]: "details": null, [web_92b1bbe6-4]: "data": null, [web_92b1bbe6-4]: "validationErrors": null [web_92b1bbe6-4]: } [web_92b1bbe6-4]: [web_92b1bbe6-4]: [14:56:56 ERR] Not Found [web_92b1bbe6-4]: Volo.Abp.Http.Client.AbpRemoteCallException: Not Found [web_92b1bbe6-4]: at Volo.Abp.Http.Client.ClientProxying.ClientProxyBase`1.ThrowExceptionForResponseAsync(HttpResponseMessage response)
    \[web\_92b1bbe6\-4\]: at Volo\.Abp\.Http\.Client\.ClientProxying\.ClientProxyBase`1.RequestAsync(ClientProxyRequestContext requestContext) [web_92b1bbe6-4]: at Volo.Abp.Http.Client.ClientProxying.ClientProxyBase`1\.RequestAsync\[T\]\(ClientProxyRequestContext requestContext\)
    \[web\_92b1bbe6\-4\]: at Volo\.Abp\.Http\.Client\.ClientProxying\.ClientProxyBase\`1\.RequestAsync\[T\]\(String methodName\, ClientProxyRequestTypeValue arguments\)
    \[web\_92b1bbe6\-4\]: at Volo\.Payment\.Gateways\.ClientProxies\.GatewayClientProxy\.GetSubscriptionSupportedGatewaysAsync\(\)
    \[web\_92b1bbe6\-4\]: at Volo\.Payment\.Admin\.Web\.Pages\.Payment\.Plans\.GatewayPlans\.CreateModalModel\.OnGetAsync\(\)
    \[web\_92b1bbe6\-4\]: at Microsoft\.AspNetCore\.Mvc\.RazorPages\.Infrastructure\.ExecutorFactory\.NonGenericTaskHandlerMethod\.Execute\(Object receiver\, Object\[\] arguments\)
    \[web\_92b1bbe6\-4\]: at Microsoft\.AspNetCore\.Mvc\.RazorPages\.Infrastructure\.PageActionInvoker\.InvokeHandlerMethodAsync\(\)
    \[web\_92b1bbe6\-4\]: at Microsoft\.AspNetCore\.Mvc\.RazorPages\.Infrastructure\.PageActionInvoker\.InvokeNextPageFilterAsync\(\)
    \[web\_92b1bbe6\-4\]: \[14:56:56 ERR\] Code:NotFound
    \[web\_92b1bbe6\-4\]: \[14:56:56 ERR\] Details:
    \[web\_92b1bbe6\-4\]: \[14:56:56 INF\] Executing ObjectResult\, writing value of type 'Volo\.Abp\.Http\.RemoteServiceErrorResponse'\.
    \[web\_92b1bbe6\-4\]: \[14:56:56 INF\] Executed page /Payment/Plans/GatewayPlans/CreateModal in 35\.0073ms
    \[web\_92b1bbe6\-4\]: \[14:56:56 INF\] Executed endpoint '/Payment/Plans/GatewayPlans/CreateModal'
    \[web\_92b1bbe6\-4\]: \[14:56:56 INF\] Request finished HTTP/2 GET [https://localhost:44321/Payment/Plans/GatewayPlans/CreateModal?planId=f3e424cf-9418-5570-396e-3a0b3c3f0b0b](https://localhost:44321/Payment/Plans/GatewayPlans/CreateModal?planId=f3e424cf-9418-5570-396e-3a0b3c3f0b0b) \- \- \- 404 \- application/json;\+charset=utf\-8 246\.0291ms
  • Steps to reproduce the issue:"
  • Simply create a new Micro-service.
  • add volo payment module
  • current depends for web host module
  • current depends for saasHost
  • on configure payment options in saas host
  • configure payment web option in web host
  • add payments json to appsettings I plan on user stripe web hooks, but before i set that up I want to create a poc and learn how it works. However, I cant seem to get past creating a new gateway plan by clicking the "new gateway plan button".
  • The modal just doesn't show up. I eventually get this error when i click the new gateway plan button.
  • Forgive me for my smooth brain, but I can't seem to figure this out and the docs are helpful, but it skips this portion a bit.
  • Am I configuring this wrong? Or, am I missing some configuration entirely. Thanks for the help!

3 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    : [14:56:56 INF] Sending HTTP request GET https://localhost:44325/api/payment/gateways/subscription-supported?api-version=1.0 : [14:56:56 INF] Received HTTP response headers after 4.9762ms - 404

    hi

    Did you also Update appsettings.json for Ocelot configuration?

    https://docs.abp.io/en/commercial/latest/startup-templates/microservice/add-microservice

  • User Avatar
    0
    dmiller1301 created

    { "ServiceKey": "Saas Service", "DownstreamPathTemplate": "/api/payment/{everything}", "DownstreamScheme": "https", "DownstreamHostAndPorts": [ { "Host": "localhost", "Port": 44381 } ], "UpstreamPathTemplate": "/api/payment/{everything}", "UpstreamHttpMethod": [ "Put", "Delete", "Get", "Post" ] }, this is what was missing in the internal gateway ocelot json. Is it usually generated when you add payment module or is this something I have to add on a fresh project.

    any how it, adding this to the json did work. Thanks a lot for the tip.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    : )

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11