Queryset is Containing some items but all() method returns empty array

I have this code:

print(f"DEBUG 1: {queryset}")
transaction_items = queryset.all()
print(f"DEBUG 2: {len(queryset.all())}")

somehow producing this result:

DEBUG 1: <QuerySet [<TransactionItem: TransactionItem object (18259)>, <TransactionItem: TransactionItem object (18258)>]>
DEBUG 2: 0
CHUAKS: [] 0

It's quite weird because the all() method usually return non-empty array because the queryset itself is not empty.