Activities of "cangunaydin"

Hello ok, I will try it on a different environment. But what can be different on different environment it does not make sense. So weird i will let you know when i try it.

Hello Engincan, It is weird that it does not throw an error for you. From the image i have seen you do not impersonate yourself as one of the tenants admin user. Did you try with the impersonation? I believe error is related with unitofwork. According to error it can not find the entity, i believe it is related with tenantid is null while you are trying to get the value. But of course i am not so sure. I am getting the error when the docker image is running. I was thinking if it is sth related with my environment. I deleted also the volume of rabbitmq with the image and spin it up again, it is behaving the same. I am trying this on my mac, i can try it on windows machine and let you know but i don't think it is going to change. Can you confirm that you tested and requested the gdpr data with an impersonation with one of tenant's users?

Hello EngincanV, It is little weird that it does not behave the same. I use docker images for rabbitmq, postgresql and redis cache. I have shared the solution and sent an email with the link so that you can download the sample project.

Hello EngincanV, Is there any progress on this one? I think the bot closed the thread again.

Hello Engincan, I managed to produce the problem from a new empty template, i can send you the project if you want also. i will try to give the instructions step by step.

  1. First create a new project with this command
abp new Acme.BookStore -u angular --tiered -dbms PostgreSQL -csf --version 9.0.2

it doesn't have to be postgresql but i tried with this that's why. 2) Then change the connection strings and migrate database. 3) Add this to appsettings.json of HttpApi.Host project

  "RabbitMQ": {
    "Connections": {
      "Default": {
        "HostName": "localhost",
        "Port": "5672"
      }
    },
    "EventBus": {
      "ClientName": "BookStore",
      "ExchangeName": "BookStore"
    }
  }
  1. Add this to appsettings.json to AuthServer project
  "RabbitMQ": {
    "Connections": {
      "Default": {
        "HostName": "localhost",
        "Port": "5672"
      }
    },
    "EventBus": {
      "ClientName": "AuthServer",
      "ExchangeName": "BookStore"
    }
  },
  1. Configure both projects (AuthServer and HttpApi.Host) to use Distributed Event Bus with RabbitMq.

run both projects.

  1. Create a tenant and impersonate with that tenant. Then try to request gdpr data with that user.

now you should see the error in your console.

ps: you should use the package

<PackageReference Include="Volo.Abp.EventBus.RabbitMQ" Version="9.1.0" />

Ok I will try to do it on an empty template I couldn’t find the time yet can you give little bit more time and keep this open.

Is there a way that I can fix it in my version ? Can you give step by step instructions

okay i think i have found the problem but i need a solution for my case. this error happens because i removed JsonSerializer Converters that is type of ObjectToInferredTypesConverter to use IAsyncEnumerable from my controllers.

 private void ConfigureJsonSerializerForAsyncEnumarable(ServiceConfigurationContext context, IConfiguration configuration)
    {
        context.Services.Configure<JsonOptions>(options =>
        {
            options.JsonSerializerOptions.Converters.RemoveAll(x => x.GetType() == typeof(ObjectToInferredTypesConverter));
        });
    }

i need to keep this code since i need to serialize json responses asynchronously from my controller. But this is effecting the validations in extra properties.

Is there any other way that i can have both of the worlds.

nope it is not.

  • ABP Framework version: v9.0.x
  • Database System: EF Core (PostgreSQL)
  • Exception message and full stack trace:
  • [22:51:05 ERR] There is no such an entity. Entity type: Volo.Abp.Identity.IdentityUser, id: 3a173a2b-c7d5-efa2-a1a7-ea8c589cbbff Volo.Abp.Domain.Entities.EntityNotFoundException: There is no such an entity. Entity type: Volo.Abp.Identity.IdentityUser, id: 3a173a2b-c7d5-efa2-a1a7-ea8c589cbbff at Volo.Abp.Domain.Repositories.EntityFrameworkCore.EfCoreRepository3.GetAsync(TKey id, Boolean includeDetails, CancellationToken cancellationToken) at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue1.ProceedAsync() at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation) at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func3 proceed) at Volo.Abp.Identity.Gdpr.IdentityGdprEventHandler.HandleEventAsync(GdprUserDataRequestedEto eventData) at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous(IInvocation invocation, IInvocationProceedInfo proceedInfo) at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapter.ProceedAsync() at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation) at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter1.InterceptAsync(IInvocation invocation, IInvocationProceedInfo proceedInfo, Func3 proceed) at Volo.Abp.EventBus.EventHandlerInvoker.InvokeAsync(IEventHandler eventHandler, Object eventData, Type eventType) at Volo.Abp.EventBus.EventBusBase.TriggerHandlerAsync(IEventHandlerFactory asyncHandlerFactory, Type eventType, Object eventData, List1 exceptions, InboxConfig inboxConfig) at System.AbpExceptionExtensions.ReThrow(Exception exception) at Volo.Abp.EventBus.EventBusBase.ThrowOriginalExceptions(Type eventType, List1 exceptions) at Volo.Abp.EventBus.EventBusBase.TriggerHandlersAsync(Type eventType, Object eventData) at Volo.Abp.EventBus.Distributed.DistributedEventBusBase.TriggerHandlersDirectAsync(Type eventType, Object eventData) at Volo.Abp.EventBus.RabbitMq.RabbitMqDistributedEventBus.ProcessEventAsync(IModel channel, BasicDeliverEventArgs ea) at Volo.Abp.RabbitMQ.RabbitMqMessageConsumer.HandleIncomingMessageAsync(Object sender, BasicDeliverEventArgs basicDeliverEventArgs)

Hello i have these users in my database.

whenever i click prepare button for gdpr it throws an error on the background. It couldn't find the user in the database and since rabbitmq is the distributed message handler it always retries again and again. So it is full of errors repeating again maybe in the modules that participates for the event it is better to use try catch instead of throwing error. Is it possible to change that? and why the identity module can not find the id that's kind of weird. is it a bug?

Showing 1 to 10 of 166 entries
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 16, 2025, 12:13