You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(gear-sync): surface the backend's actual error in the sync tray (#12)
Gear-sync failures showed a hardcoded message guessed from the HTTP status
(e.g. a 404 always claimed 'character not found — link your character on the
profile page'), which buried the real reason and is now misleading since the
backend auto-provisions characters.
ApiResult now carries an optional Detail; the batch gear-sync path extracts
FastAPI's 'detail' from the error body and GearSyncService prefers it for the
overlay/chat message, falling back to a categorized message when absent.
Bump to v0.4.1.
ApiError.Unauthorized=>"[XRP] API key rejected — re-authorize via /xrp config.",
84
+
ApiError.NotFound=>"[XRP] Gear sync failed (404) — check your API URL in /xrp config.",
85
+
ApiError.Server=>"[XRP] Backend error during gear sync (500). Check the server logs.",
86
+
ApiError.Network=>"[XRP] Gear sync failed — network error. Check your API URL and connection.",
87
+
_ =>"[XRP] Gear sync rejected by server. Check the Dalamud log for details.",
88
+
};
89
+
}
90
+
71
91
// ==================== Pure diff (TDD) ====================
72
92
73
93
/// <summary>
@@ -323,14 +343,7 @@ public void SyncSavedGearsets()
323
343
}
324
344
else
325
345
{
326
-
varerrMsg=result.Errorswitch
327
-
{
328
-
ApiError.Unauthorized=>"[XRP] API key rejected — re-authorize via /xrp config.",
329
-
ApiError.NotFound=>$"[XRP] Gearset sync failed (404): character '{charName}' on '{charWorld}' not found, or API URL is wrong. Link your character on the profile page. Check the Dalamud log for details.",
330
-
ApiError.Server=>"[XRP] Backend error during gearset sync (500). Check the server logs.",
331
-
ApiError.Unknown=>$"[XRP] Gearset sync rejected by server (422). Your character may not be linked, or a payload field is invalid. Check the Dalamud log for details.",
332
-
_ =>"[XRP] Gearset sync failed — network error. Check your API URL and connection.",
Copy file name to clipboardExpand all lines: XIVRaidPlannerPlugin/XIVRaidPlannerPlugin.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
"Description": "Displays loot priority rankings during savage raids and auto-logs loot drops to your FFXIV Raid Planner static. Syncs gear, saved gearsets, mounts, and collection progress to the web app. Requires an API key from the web app.\n\nCommands:\n/xrp - Toggle BiS gear viewer\n/xrp priority - Toggle priority overlay\n/xrp split - Toggle split-clear assignment overlay\n/xrp sync - Run all enabled sync modules (gearsets, mounts)\n/xrp gearsync - Sync saved gearsets for all tracked jobs\n/xrp syncgear - Sync currently equipped gear\n/xrp mountsync - Sync owned mounts and totem counts\n/xrp config - Open configuration",
"Changelog": "v0.4.0 — Gear, mount & collection sync\n\nAdded\n- Mount farm sync: /xrp mountsync (also runs as part of /xrp sync) syncs owned mounts and totem counts to your static.\n- Batch gearset sync: /xrp gearsync syncs your saved gearsets for every tracked job in one pass.\n- /xrp syncgear syncs only your currently equipped gear.\n- Character window Gear Sync overlay — an FFXIV-native sync tray with gear, mount, and collection actions right on your Character window.\n- Collection participant sync and a catalog ID resolver (/xrp resolve-ids).\n- Split Clear overlay: /xrp split surfaces in-game run assignments for split-clear nights.\n\nv0.3.3 fixes still apply: BiS viewer Refresh no longer hides the Sync Gear button or wipes the equipped column, and the embedded plugin icon renders in the installer.",
8
+
"Changelog": "v0.4.1 — Clearer sync errors\n\nFixed\n- Gear sync now shows the server's actual reason when it fails, right in the Character window sync tray and in chat, instead of a generic message. Pairs with a website fix so first-time sign-ins no longer hit a 'character not linked' error — your character is created automatically on first sync.\n\nv0.4.0 — Gear, mount & collection sync\n\nAdded\n- Mount farm sync: /xrp mountsync (also runs as part of /xrp sync) syncs owned mounts and totem counts to your static.\n- Batch gearset sync: /xrp gearsync syncs your saved gearsets for every tracked job in one pass.\n- /xrp syncgear syncs only your currently equipped gear.\n- Character window Gear Sync overlay — an FFXIV-native sync tray with gear, mount, and collection actions right on your Character window.\n- Collection participant sync and a catalog ID resolver (/xrp resolve-ids).\n- Split Clear overlay: /xrp split surfaces in-game run assignments for split-clear nights.\n\nv0.3.3 fixes still apply: BiS viewer Refresh no longer hides the Sync Gear button or wipes the equipped column, and the embedded plugin icon renders in the installer.",
0 commit comments