Skip to content

Commit

Permalink
Revert more of panda-reqwest
Browse files Browse the repository at this point in the history
  • Loading branch information
rhystmills committed Nov 19, 2024
1 parent bf44a76 commit 79d1ff1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions public/video-ui/src/services/pandaReqwest.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,10 @@ export const poll = (url, body, timeout) => {
if (err.status == 419) {
const store = getStore();
const reauthUrl = store.getState().config.reauthUrl;

console.log({reauthUrl})
reEstablishSession(reauthUrl, 5000).then(
() => {
fetch(url, body)
.then(checkStatus)
.then(res => resolve(res))
.catch(err => reject(err));
setTimeout(makeRequest, interval, resolve, reject);
},
error => {
throw error;
Expand All @@ -40,6 +37,8 @@ export const poll = (url, body, timeout) => {
setTimeout(makeRequest, interval, resolve, reject);
}
} else {
console.log("ERROR:")
console.error(err);
reject(err);
}
});
Expand Down

0 comments on commit 79d1ff1

Please sign in to comment.