Lets say there is a uniform charge density throughout the entire space. At any point $P$, if I consider shells entered at $P$, the field at that point will be zero because according to Gauss Law, field inside a shell is zero.
But If I consider shells which are not centered at $P$, then the field is non zero. Why are the answers different?