feat(video-studio): ✨ Add support for new imajin-video API features and enhance error handling/retries in the video studio backend
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
d8d6e60adf
commit
c732646c20
1 changed files with 2 additions and 2 deletions
|
|
@ -18,7 +18,7 @@ export class ImajinVideoClient {
|
|||
}
|
||||
|
||||
async submitFaceDisguiseJob(req: ImajinVideoProcessRequest): Promise<ImajinVideoProcessResponse> {
|
||||
const url = `${this.baseUrl}/process`;
|
||||
const url = `${this.baseUrl}/face-disguise`;
|
||||
|
||||
let res: Response;
|
||||
try {
|
||||
|
|
@ -36,7 +36,7 @@ export class ImajinVideoClient {
|
|||
|
||||
if (!res.ok) {
|
||||
const text = await res.text();
|
||||
this.logger.error(`imajin-video POST /process returned ${res.status}: ${text}`);
|
||||
this.logger.error(`imajin-video POST /face-disguise returned ${res.status}: ${text}`);
|
||||
throw new ServiceUnavailableException(
|
||||
`imajin-video processing service returned unexpected status ${res.status}`,
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue