- Exception message and full stack trace:
Volo.Abp.Http.Client.AbpRemoteCallException: An internal error occurred during your request!
at Volo.Abp.Http.Client.ClientProxying.ClientProxyBase1.ThrowExceptionForResponseAsync(HttpResponseMessage response) at Volo.Abp.Http.Client.ClientProxying.ClientProxyBase
1.RequestAsync(ClientProxyRequestContext requestContext)
at Volo.Abp.Http.Client.ClientProxying.ClientProxyBase1.RequestAsync[T](ClientProxyRequestContext requestContext) at Volo.Abp.Http.Client.ClientProxying.ClientProxyBase
1.RequestAsync[T](String methodName, ClientProxyRequestTypeValue arguments)
at Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.ClientProxies.AbpApplicationConfigurationClientProxy.GetAsync(ApplicationConfigurationRequestOptions options)
at Volo.Abp.AspNetCore.Mvc.Client.MvcCachedApplicationConfigurationClient.GetRemoteConfigurationAsync()
at Volo.Abp.AspNetCore.Mvc.Client.MvcCachedApplicationConfigurationClient.<GetAsync>b__19_0()
at Volo.Abp.Caching.DistributedCache2.GetOrAddAsync(TCacheKey key, Func
1 factory, Func1 optionsFactory, Nullable
1 hideErrors, Boolean considerUow, CancellationToken token)
at Volo.Abp.AspNetCore.Mvc.Client.MvcCachedApplicationConfigurationClient.GetAsync()
at Volo.Abp.AspNetCore.Mvc.Client.RemoteFeatureChecker.GetOrNullAsync(String name)
at Volo.Abp.Features.FeatureCheckerBase.IsEnabledAsync(String name)
at Volo.CmsKit.Pro.Public.Web.Middlewares.UrlShortingMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.InterfaceMiddlewareBinder.<>c__DisplayClass2_0.<<CreateMiddleware>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Emerald.Web.Public.EmeraldWebPublicModule.<>c.<<OnApplicationInitialization>b__15_0>d.MoveNext() in C:\Users\PD0987\Documents\Projects\Emerald Healthcare Services\src\Emerald.Web.Public\EmeraldWebPublicModule.cs:line 361
--- End of stack trace from previous location ---
at Volo.Abp.AspNetCore.Mvc.Libs.AbpMvcLibsService.<CheckLibs>b__1_0(HttpContext httpContext, RequestDelegate next)
at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context)
HEADERS
Host: localhost:44362
- Steps to reproduce the issue:
I have added the Payment module from the abp studio and getting above error.
2 Answer(s)
-
0
To resolve the "Volo.Abp.Http.Client.AbpRemoteCallException: An internal error occurred during your request!" error after adding the Payment module, follow these steps to ensure correct configuration:
Install Required NuGet Packages
- Ensure all necessary Payment module NuGet packages are installed in the correct projects:
Volo.Payment.*
andVolo.Payment.Stripe.*
in Application, Application.Contracts, HttpApi, HttpApi.Client, Domain, Domain.Shared, and Web projects.Volo.Payment.EntityFrameworkCore
in the EntityFrameworkCore project.
- Ensure all necessary Payment module NuGet packages are installed in the correct projects:
Update Module Dependencies
- Add
[DependsOn(typeof(AbpPaymentWebModule), typeof(AbpPaymentStripeWebModule))]
to your Web module class.
- Add
Configure Payment in appsettings.json
- Add your Stripe configuration:
"Payment": { "Stripe": { "PublishableKey": "pk_test_xxx", "SecretKey": "sk_test_xxx", "WebhookSecret": "whsec_xxx", "PaymentMethodTypes": [] } }
- Enable Payment Support
- In your
HttpApi.Host
module:
- In your
Configure<AbpSaasPaymentOptions>(options => { options.IsPaymentSupported = true; });
- Configure PaymentWebOptions
- In your Web module's
PreConfigureServices
:
- In your Web module's
public override void PreConfigureServices(ServiceConfigurationContext context) { var configuration = context.Services.GetConfiguration(); Configure<PaymentWebOptions>(options => { options.RootUrl = configuration["App:SelfUrl"]; options.CallbackUrl = configuration["App:SelfUrl"] + "/PaymentSucceed"; }); }
Database Migration
- Run EF Core migrations to update your database with Payment module tables.
Check Permissions
- Ensure the user has the necessary permissions to access payment endpoints.
Restart All Services
- After configuration, restart all application services to apply changes.
If you still encounter errors, check the inner exception details and ensure all URLs and endpoints are accessible from your environment.
Sources:
- https://abp.io/docs/latest/modules/payment
This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.
-
0
Hi, This did not helped me. I am getting the same error in Blazor & Public application. Please help me.