fix issue with fn.getPromise not returning response if type not json