Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug(FR-447): an error occurs when clicking the validate button #3092

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions react/src/components/ServiceValidationView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const ServiceValidationView: React.FC<ServiceValidationModalProps> = ({

async function getLogs(sessionId: string) {
return baiClient
.get_logs(sessionId, baiClient._config.accessKey, 0)
.get_logs(sessionId, baiClient._config.accessKey)
.then((req: any) => {
const ansi_up = new AnsiUp();
const logs = ansi_up.ansi_to_html(req.result.logs);
Expand Down Expand Up @@ -142,7 +142,7 @@ const ServiceValidationView: React.FC<ServiceValidationModalProps> = ({
// something went wrong during validation
setValidationStatus('error');
message.error(t('modelService.CannotValidateNow'));
}, 10000);
}, 30000);

sse?.addEventListener('bgtask_updated', async (e) => {
const data = JSON.parse(e['data']);
Expand Down
Loading