Skip to content

Commit

Permalink
Trigger getStateWaitMsg for "Request timeout" error
Browse files Browse the repository at this point in the history
  • Loading branch information
Filip Lelek committed Sep 26, 2024
1 parent 92341d2 commit ad43e22
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/glifApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,7 @@ export const getStateWaitMsg = async (
})

const data = await response.json()
const requestTimeoutErrorCode = -32603
if (data?.error && data.error.code === requestTimeoutErrorCode) {
if (data?.error && data.error.data === "Request timeout") {
return await getStateWaitMsg(cid)
}

Expand Down

0 comments on commit ad43e22

Please sign in to comment.