cache success returns err=undefined rather than null