For me, this was a missing await when querying context, i.e I was trying to return an uncompleted Task<something> rather than a something, which is obviously impossible
Task<something>
something