Just in case someone finds that none of the solutions proposed here work, I just found out that this problem happens if you're only using the cache as source like this:
var queriedObject = docOject.get(const GetOptions(source: Source.cache))
Try to use
Source.serverAndCache