diegosouzapw/OmniRoute · error

Provider returned no recognizable image payload: ${JSON.stri

Error message

Provider returned no recognizable image payload: ${JSON.stringify(payload).slice(0, 240)}

What it means

Error "Provider returned no recognizable image payload: ${JSON.stringify(payload).slice(0, 240)}" thrown in diegosouzapw/OmniRoute.

Source

Thrown at open-sse/handlers/imageGeneration.ts:2438

    for (const item of payload.images) pushCandidate(item);
  }

  if (payload?.image) pushCandidate({ b64_json: payload.image });
  if (payload?.url) pushCandidate({ url: payload.url });
  if (payload?.sample) pushCandidate({ url: payload.sample });
  if (payload?.result?.sample) pushCandidate({ url: payload.result.sample });
  if (Array.isArray(payload?.result?.images)) {
    for (const item of payload.result.images) pushCandidate(item);
  }

  const normalized = [];
  for (const candidate of candidates) {
    const item = await normalizeProviderImageCandidate(candidate, body, defaultFormat);
    if (item) normalized.push(item);
  }

  if (normalized.length === 0 && log) {
    log.warn(
      "IMAGE",
      `Provider returned no recognizable image payload: ${JSON.stringify(payload).slice(0, 240)}`
    );
  }

  return normalized;
}

async function normalizeProviderImageCandidate(candidate, body, defaultFormat) {
  const wantsBase64 = body?.response_format === "b64_json" || defaultFormat === "b64_json";
  let url = null;
  let b64 = null;

  if (typeof candidate === "string") {
    const dataUriMatch = /^data:[^;]+;base64,(.+)$/i.exec(candidate);
    if (dataUriMatch) {
      b64 = dataUriMatch[1];
    } else if (isHttpUrl(candidate)) {

View on GitHub (pinned to a179ffed5b)

When it happens

Trigger: Thrown at open-sse/handlers/imageGeneration.ts:2438 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/05e1d3115cf4d69c. Report an issue: GitHub.