Search before asking
What happened
When the task runs abnormally, the abnormal information cannot be displayed.
The repair method is as follows:
- Found file: dinky web \ src \ pages \ DevOps \ JobDetail \ JobLogs \ components \ ExceptionTab.tsx
- The modified content is as follows:
// logs.push(...(jobDetail.jobDataDto?.exceptions?.['exceptionHistory']?.['entries'] ?? []));
const exceptions = jobDetail? .jobDataDto? .exceptions || {};
const exceptionEntries = exceptions? .exceptionHistory? .entries || [];
if (exceptionEntries && exceptionEntries.length > 0) {
//Convert abnormal entries to logs format
const convertedEntries = exceptionEntries.map((entry, index) => {
console.log(Entry ${index}:, entry);
return {
taskName: entry.exceptionName || Exception ${index + 1},
stacktrace: entry.stacktrace || '',
exceptionName: entry.exceptionName || 'Unknown Exception',
timestamp: entry.timestamp || Date.now(),
location: entry.location || ''
};
});
logs.push(...convertedEntries);
console.log('Converted entries:', convertedEntries);
}
What you expected to happen
How to reproduce
Anything else
No response
Version
dev
Are you willing to submit PR?
Code of Conduct
Search before asking
What happened
When the task runs abnormally, the abnormal information cannot be displayed.
The repair method is as follows:
// logs.push(...(jobDetail.jobDataDto?.exceptions?.['exceptionHistory']?.['entries'] ?? []));
const exceptions = jobDetail? .jobDataDto? .exceptions || {};
const exceptionEntries = exceptions? .exceptionHistory? .entries || [];
if (exceptionEntries && exceptionEntries.length > 0) {
//Convert abnormal entries to logs format
const convertedEntries = exceptionEntries.map((entry, index) => {
console.log(
Entry ${index}:, entry);return {
taskName: entry.exceptionName ||
Exception ${index + 1},stacktrace: entry.stacktrace || '',
exceptionName: entry.exceptionName || 'Unknown Exception',
timestamp: entry.timestamp || Date.now(),
location: entry.location || ''
};
});
logs.push(...convertedEntries);
console.log('Converted entries:', convertedEntries);
}
What you expected to happen
How to reproduce
Anything else
No response
Version
dev
Are you willing to submit PR?
Code of Conduct