Toggle navigation
Toggle navigation
This project
Loading...
Sign in
卢阳
/
front_backend_zImage
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
ly0303521
2026-01-28 17:39:44 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5f457af6fbbaa3d356aa84233dccbf55bdbd803f
5f457af6
1 parent
05e3f890
防止服务端还未反应,轮询过早,反馈404报错
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
z-image-generator/services/videoService.ts
z-image-generator/services/videoService.ts
View file @
5f457af
...
...
@@ -113,6 +113,11 @@ export const pollVideoStatus = (
console
.
warn
(
`
Gateway
timeout
(
$
{
res
.
status
}),
retrying
poll
...
`
);
return
;
}
// Do not fail immediately on 404, the task might not be ready yet
if
(
res
.
status
===
404
)
{
console
.
warn
(
'Task not found (404), retrying poll...'
);
return
;
}
clearInterval
(
interval
);
reject
(
new
Error
(
`
HTTP
error
!
status
:
$
{
res
.
status
}
`
));
return
;
...
...
Please
register
or
login
to post a comment