|
|
@ -1202,13 +1202,10 @@ export class RemoteImageGenerationRequest {
|
|
|
|
status: bind.status ?? 500,
|
|
|
|
status: bind.status ?? 500,
|
|
|
|
message: errorData.error,
|
|
|
|
message: errorData.error,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
return
|
|
|
|
} catch(err) {
|
|
|
|
} catch(err) {
|
|
|
|
onError({
|
|
|
|
// don't stop generate when http error
|
|
|
|
status: bind.status ?? 500,
|
|
|
|
|
|
|
|
message: `Error: HTTP ${bind.status} - Unable to reach NovelAI servers. Please wait for a moment and try again`,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
let res = await bind.json()
|
|
|
|
let res = await bind.json()
|
|
|
|
// console.log('task info', res)
|
|
|
|
// console.log('task info', res)
|
|
|
@ -1241,7 +1238,7 @@ export class RemoteImageGenerationRequest {
|
|
|
|
message:
|
|
|
|
message:
|
|
|
|
'Error: Timeout - Unable to reach NovelAI servers. Please wait for a moment and try again',
|
|
|
|
'Error: Timeout - Unable to reach NovelAI servers. Please wait for a moment and try again',
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}, 3600 * 1000)
|
|
|
|
}, 30 * 1000)
|
|
|
|
|
|
|
|
|
|
|
|
const requestGetGenerationOutput: RequestInit = {
|
|
|
|
const requestGetGenerationOutput: RequestInit = {
|
|
|
|
mode: 'cors',
|
|
|
|
mode: 'cors',
|
|
|
|