Open Closed

window.tavTechnologies.treva doesn't contain identityService #8751


User avatar
0
consultant.ahmet.ulusoy created

// 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)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Member

    Hello ,

    I have tried to reproduce this issue on my side, but I cannot reproduce it.
    Once confirm which Base class you are use
    image.png
    Please provide me some more steps to reproduce this issue.

    Thank you.

  • User Avatar
    0
    consultant.ahmet.ulusoy created

    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;

  • User Avatar
    0
    consultant.ahmet.ulusoy created

    I think Web project can't find identity microservice client proxy.json

  • User Avatar
    0
    consultant.ahmet.ulusoy created

    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](Func3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates1 shouldRetryResultPredicates, Func5 onRetryAsync, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable1 sleepDurationsEnumerable, Func4 sleepDurationProvider, Boolean continueOnCapturedContext) at Polly.AsyncPolicy1.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.ClientProxyBase1.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.ClientProxyBase1.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.g__Logged|12_1(ControllerActionInvoker invoker)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
    [09:27:02 ERR] Code:
    [09:27:02 ERR] Details:
    [09:27:02 INF] Executing ObjectResult, writing value of type 'Volo.Abp.Http.RemoteServiceErrorResponse'.

  • User Avatar
    0
    consultant.ahmet.ulusoy created

    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"

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    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.

  • User Avatar
    0
    consultant.ahmet.ulusoy created

    Hi,

    No, these entities must be in Identity Microservice and we will create releations with other AbpUser tables.

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    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.

  • User Avatar
    0
    consultant.ahmet.ulusoy created

    Hi again,

    I created a new microservice and started to use it. Can you refund my ticket please?

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi again,

    I created a new microservice and started to use it. Can you refund my ticket please?

    Hi, sure. I have refunded your ticket:

    image.png

    Can you confirm that your problem is resolved, so, I can close the question?

  • User Avatar
    0
    consultant.ahmet.ulusoy created

    I can't resolve the problem because i have urgency and had to create a new microservice.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.3.0-preview. Updated on April 11, 2025, 10:10