redis-om-dotnet icon indicating copy to clipboard operation
redis-om-dotnet copied to clipboard

When key does not exists i get Index was outside the bounds of the array

Open zulander1 opened this issue 3 years ago • 2 comments

For some reason, in production, when the key does not exists it is throwing an Index was outside the bounds of the array, this happens when we are enumerating though a large collection...

image

zulander1 avatar Aug 03 '22 21:08 zulander1

Hmmm, what code is precipitating this? Sounds like a server error the constructor isn't handling appropriately.

slorello89 avatar Aug 05 '22 11:08 slorello89

@slorello89

        public async Task<IEnumerable<GroupMemberModel>> GetAsync(Expression<Func<GroupMemberModel, bool>> predicate)
        {
            return (await _groupMembers.Where(predicate).ToListAsync()).Select(x => x);
        }

zulander1 avatar Aug 17 '22 14:08 zulander1

I'm pretty sure this is the same as #334 - so it will be fixed by #367.

slorello89 avatar May 03 '23 11:05 slorello89