Skip to content

Log SIWA escalation failure error message #7740

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

Merged
merged 1 commit into from
Jul 29, 2025
Merged
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
8 changes: 7 additions & 1 deletion apps/dashboard/src/@/api/support.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export async function createSupportTicket(params: {
try {
const siwaUrl = process.env.NEXT_PUBLIC_SIWA_URL;
if (siwaUrl) {
await fetch(`${siwaUrl}/v1/chat/feedback`, {
const res = await fetch(`${siwaUrl}/v1/chat/feedback`, {
method: "POST",
headers: {
"Content-Type": "application/json",
Expand All @@ -73,6 +73,12 @@ export async function createSupportTicket(params: {
feedbackRating: ESCALATION_FEEDBACK_RATING,
}),
});

if (!res.ok) {
// Log error but don't fail the ticket creation
const errorMessage = await res.text();
console.error("Failed to escalate to SIWA feedback:", errorMessage);
}
}
} catch (error) {
// Log error but don't fail the ticket creation
Expand Down
Loading