- ABP Framework version: v9.0.2
- UI Type: MVC
- Database System: EF Core (PostgreSQL, etc..)
- Tiered (for MVC) or Auth Server Separated (for Angular): yes/no
- Exception message and full stack trace: jQuery.Deferred exception: Cannot read properties of undefined (reading 'abpUserAddresses') TypeError: Cannot read properties of undefined (reading 'abpUserAddresses') at HTMLDocument.<anonymous> (http://localhost:44377/Pages/AbpUserAddresses/index.js?_v=638743460704453176:4:78) at mightThrow (http://localhost:44377/libs/jquery/jquery.js?_v=638734041378540000:3489:29) at process (http://localhost:44377/libs/jquery/jquery.js?_v=638734041378540000:3557:12) undefined jquery.js?_v=638734041378540000:3793 Uncaught TypeError: Cannot read properties of undefined (reading 'abpUserAddresses') at HTMLDocument.<anonymous> (index.js?_v=638743460704453176:4:78) at mightThrow (jquery.js?_v=638734041378540000:3489:29) at process (jquery.js?_v=638734041378540000:3557:12)
// window.tavTechnologies.treva.identityService.abpUserAddresses.abpUserAddresses; window.tavTechnologies.treva doesn't contain identityService
- Steps to reproduce the issue:
- Add a new Entity with AbpSuite and generate with all options selected for FullAuditedEntityRoot
11 Answer(s)
-
0
-
0
I made above for a Microservice Solution and used Abp Suite in IdentityService solution. Also, Abp Suite created the pages in Web solution. I also generate the proxies too but identityService is not listed in "window.tavTechnologies.treva" object like wise below
window.tavTechnologies.treva.identityService.identityCountries.identityCountries;
-
0
I think Web project can't find identity microservice client proxy.json
-
0
09:27:02 ERR] ---------- RemoteServiceErrorInfo ---------- { "code": null, "message": "An error occurred during the ABP remote HTTP request. (The operation was canceled.) See the inner exception for details.", "details": null, "data": null, "validationErrors": null }
[09:27:02 ERR] An error occurred during the ABP remote HTTP request. (The operation was canceled.) See the inner exception for details. Volo.Abp.Http.Client.AbpRemoteCallException: An error occurred during the ABP remote HTTP request. (The operation was canceled.) See the inner exception for details. ---> System.Threading.Tasks.TaskCanceledException: The operation was canceled. ---> System.Threading.Tasks.TaskCanceledException: The operation was canceled. ---> System.IO.IOException: Unable to read data from the transport connection: The I/O operation has been aborted because of either a thread exit or an application request.. ---> System.Net.Sockets.SocketException (995): The I/O operation has been aborted because of either a thread exit or an application request. --- End of inner exception stack trace --- at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token) at System.Net.Http.HttpConnection.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) --- End of inner exception stack trace --- at System.Net.Http.HttpConnection.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) at System.Net.Http.Metrics.MetricsHandler.SendAsyncWithMetrics(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.<SendCoreAsync>g__Core|4_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken) at Microsoft.Extensions.Http.PolicyHttpMessageHandler.SendCoreAsync(HttpRequestMessage request, Context context, CancellationToken cancellationToken) at Polly.Retry.AsyncRetryEngine.ImplementationAsync[TResult](Func
3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates
1 shouldRetryResultPredicates, Func5 onRetryAsync, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable
1 sleepDurationsEnumerable, Func4 sleepDurationProvider, Boolean continueOnCapturedContext) at Polly.AsyncPolicy
1.ExecuteInternalAsync(Func3 action, Context context, Boolean continueOnCapturedContext, CancellationToken cancellationToken) at Microsoft.Extensions.Http.PolicyHttpMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.<SendCoreAsync>g__Core|4_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken) at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken) --- End of inner exception stack trace --- at System.Net.Http.HttpClient.HandleFailure(Exception e, Boolean telemetryStarted, HttpResponseMessage response, CancellationTokenSource cts, CancellationToken cancellationToken, CancellationTokenSource pendingRequestsCts) at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken) at Volo.Abp.Http.Client.ClientProxying.ClientProxyBase
1.RequestAsync(ClientProxyRequestContext requestContext) --- End of inner exception stack trace --- at Volo.Abp.Http.Client.ClientProxying.ClientProxyBase1.RequestAsync(ClientProxyRequestContext requestContext) at Volo.Abp.Http.Client.ClientProxying.ClientProxyBase
1.RequestAsync[T](ClientProxyRequestContext requestContext) at Volo.Abp.Http.Client.ClientProxying.ClientProxyBase`1.RequestAsync[T](String methodName, ClientProxyRequestTypeValue arguments) at Volo.Chat.Users.ContactClientProxy.GetTotalUnreadMessageCountAsync() at lambda_method2471(Closure, Object) at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker. -
0
As i understand it,
private static void ConfigureStaticProxyForIdentityService(ServiceConfigurationContext context) { context.Services.AddStaticHttpClientProxies(typeof(TrevaIdentityServiceContractsModule).Assembly); }
above method is not working properly. If i add any other microservice, we can see it's object in javascript like below
"window.tavTechnologies.treva.demoService..";
but if we want to access identity service like below
"window.tavTechnologies.treva.identityService"
It can't find "identityService" in "window.tavTechnologies.treva"
-
0
Hi, for the pre-existing microservice solutions are designed to use the ABP's relevant modules. By any chance, can you create a new microservice and generate your CRUD pages in that microservice. In that case, you will get better integration with the ABP Suite, by design.
Regards.
-
0
Hi,
No, these entities must be in Identity Microservice and we will create releations with other AbpUser tables.
-
0
Hi,
No, these entities must be in Identity Microservice and we will create releations with other AbpUser tables.
Okay. I will test your case and try to write you back asap.
-
0
Hi again,
I created a new microservice and started to use it. Can you refund my ticket please?
-
0
-
0
I can't resolve the problem because i have urgency and had to create a new microservice.