You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have an issue currently in our fetchinterceptor, in where if we return a promise of a KakapoResponse it won't actually return the response body in the handler. That happens here
constresponse=handler(request,db);if(responseinstanceofPromise){//TODO: Should we handle 'requestDelay' also for async responses?returnresponse.then(data=>fakeResponse(data));}if(!(responseinstanceofKakapoResponse)){returnnewPromise(resolve=>setTimeout(()=>resolve(fakeResponse(response)),interceptor.getDelay()));}constresult=fakeResponse(response.body,response.headers);returnnewPromise((resolve,reject)=>setTimeout(()=>{if(response.error){returnreject(result);}returnresolve(result);},interceptor.getDelay()));
After checking if the response it's a promise, we should also check if it's a KakapoResponse one, and handle it accordingly as we do:
We have an issue currently in our fetchinterceptor, in where if we return a promise of a KakapoResponse it won't actually return the response body in the handler. That happens here
After checking if the response it's a promise, we should also check if it's a KakapoResponse one, and handle it accordingly as we do:
The text was updated successfully, but these errors were encountered: