diegosouzapw/OmniRoute · error · Error

create_failed

Error message

create_failed

What it means

Sentinel thrown when POST /api/combos with a radar suggestion payload fails — unless the 400 was because the combo already exists (handled by refreshExistingName). 'create_failed' means genuine rejection: invalid payload, name collision not resolvable, or server error.

Solutions

  1. Check the suggestion payload passes the combos POST validation
  2. If the name exists, the 400 path handles it — persistent failure is server-side
  3. Retry; check /api/combos logs if it recurs
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at src/app/(dashboard)/dashboard/radar/combos/page.tsx:104 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of diegosouzapw/OmniRoute@a179ffed5b (2026-08-25). Data as JSON: /api/errors/656abbe448896104. Report an issue: GitHub.

Appendix: source

Thrown at src/app/(dashboard)/dashboard/radar/combos/page.tsx:104

      return true;
    } catch {
      return false;
    }
  }, []);

  const createSuggestion = useCallback(
    async (suggestion: RadarComboSuggestion) => {
      setCreatingName(suggestion.name);
      setError("");
      try {
        const response = await fetch("/api/combos", {
          method: "POST",
          headers: { "Content-Type": "application/json" },
          body: JSON.stringify(suggestion.payload),
        });
        if (!response.ok) {
          if (response.status === 400 && (await refreshExistingName(suggestion.name))) return;
          throw new Error("create_failed");
        }
        setExistingNames((current) => new Set([...current, suggestion.name]));
        setCreatedNames((current) => new Set([...current, suggestion.name]));
      } catch {
        setError(t("createFailed"));
      } finally {
        setCreatingName(null);
      }
    },
    [refreshExistingName, t]
  );

  if (flagOff) notFound();

  return (
    <div className="flex flex-col gap-6">
      <div className="flex flex-col gap-3">
        <Link

View on GitHub (pinned to a179ffed5b)