Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potential error on per request redis cache #6632

Closed
ismcagdas opened this issue Jan 18, 2023 · 0 comments
Closed

Potential error on per request redis cache #6632

ismcagdas opened this issue Jan 18, 2023 · 0 comments
Assignees
Milestone

Comments

@ismcagdas
Copy link
Member

Reported at https://support.aspnetzero.com/QA/Questions/10891/Redis-cache-perrequest-error-log
Related ASP.NET Core issue dotnet/aspnetcore#26128

Details:

Abp 6.2.2
Angular
.NET5
Hi abp team,

I'm getting following error several times per day :

ERROR 2022-02-11 10:24:53,841 [86   ] me.Caching.Redis.AbpPerRequestRedisCache - System.ObjectDisposedException: IFeatureCollection has been disposed.
Object name: 'Collection'.
   at Microsoft.AspNetCore.Http.Features.FeatureReferences`1.ThrowContextDisposed()
   at Microsoft.AspNetCore.Http.DefaultHttpContext.get_Items()
   at Abp.Runtime.Caching.Redis.AbpPerRequestRedisCache.TryGetValueAsync(String key)
   at Abp.Runtime.Caching.AbpCacheBase`2.GetAsync(TKey key, Func`2 factory)
System.ObjectDisposedException: IFeatureCollection has been disposed.
Object name: 'Collection'.
   at Microsoft.AspNetCore.Http.Features.FeatureReferences`1.ThrowContextDisposed()
   at Microsoft.AspNetCore.Http.DefaultHttpContext.get_Items()
   at Abp.Runtime.Caching.Redis.AbpPerRequestRedisCache.TryGetValueAsync(String key)
   at Abp.Runtime.Caching.AbpCacheBase`2.GetAsync(TKey key, Func`2 factory)

Is it a problem we can fix ? Is it due to redis data expiration policy ?

@ismcagdas ismcagdas added this to the v8.1 milestone Jan 18, 2023
@ismcagdas ismcagdas self-assigned this Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant