Err: sandbox: execution interrupted, bridge disconnecting

Scenario: I am having a request where the status changes from Processing to Processed . For that i written the below code .
Note : Below code working for else case but when the file is in processing i am getting Sandbox execution interrupted , bridge disconnecting error . Please help me

while(true){
    setTimeout(() => {}, 240000);
    var status = pm.response.json().Status;
    pm.environment.set("status", status);
     if (status==="Processing"){
         
         pm.test("Survey File",function(res){
        pm.sendRequest({ 
            url: "https://xxxxxx.com/api/v3/project/file/data/16983", 
            method: 'GET', 
            header: { 'content-type': 'application/json', 'Authorization': "Bearer " + pm.environment.get("token"), 'Accept': "*/*" } 
            }); 
            });
        }    
         else if(status==="Processed"){
             
             console.log('Status:', status);
             return;

         }
         else if(status==="Error"){
             console.log('Status:', status);
             return;
         }
     
    
}

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.