Skip to content

Commit

Permalink
more debug
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-ocean committed Feb 21, 2025
1 parent 7ad8a97 commit f7b7a85
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/services/Aquarius.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,14 @@ export class Aquarius {
headers: { 'Content-Type': 'application/octet-stream' },
signal
})
console.log('response was: ', await response.json())
const resp = await response.json()
if (resp && JSON.stringify(resp).includes('no version provided for DDO.')) {
// do it again
console.log('do it again')
response = await validateRequestLegacy()
} else {
jsonResponse = resp
}
} catch (e) {
console.error('GOT ERROR:', e)
// retry with legacy path validation
Expand All @@ -189,7 +196,7 @@ export class Aquarius {
if (!response) return status

if (response.status === 200) {
jsonResponse = await response.json()
jsonResponse = jsonResponse || (await response.json())
status.valid = true
status.hash = jsonResponse.hash
status.proof = {
Expand Down

0 comments on commit f7b7a85

Please sign in to comment.