Fixing problems

Troubleshooting Failed Requests and Unexpected Outputs

Separating verified code behavior and recorded studio errors from general prompt fixes for wrong sizes, expired security codes, failover messages, missing gallery items, and visual defects.

Published by TextToImage Studio Updated 3 December 2026, rewritten 6 min read

When an image request fails or looks wrong, half the fix is knowing whether the fault happened inside your browser interface, during an upstream security or provider check, or inside the generated pixels themselves. This page separates issues verified in our code and logs from general prompt edits that are mostly untested (one typography suggestion is marked Tested).

Verified behavior vs. general prompt suggestions

Category Basis in this studio
Size mismatch (1024×1024 -> 768×768), extra mug, watermark Directly recorded in 15 November 2026 observation (morning.jpg, afternoon.jpg).
Expired security code rejection (4.546s), failover, ignored Neural Cloud controls, gallery caps Directly verified in studio source code (image requests in imageGenerator.js, the input panel in InputPanel.jsx, gallery storage in imageCache.js, the web server in server.js) and in the failed attempt stored as priorAttempt in the 15 November 2026 record.
Prompt edits for hands, faces, typography, and clutter Mostly untested prompt-craft suggestions based on common diffusion behavior—not guarantees of a clean run here (the typography row is marked Tested).

1. Requested 1024×1024, got 768×768 (dimension & format mismatch)

What happened: Both documented mug runs requested 1024x1024 in Settings. The gallery card initially displays the requested setting (1024x1024), whereas Neural Cloud returned actual 768×768 JPEG files (44,295 bytes and 50,175 bytes).

Verified checks and remedies:

  1. Inspect natural dimensions immediately: Click any card to open the Lightbox modal and compare the Requested: badge against the live Actual: pixel readout measured once the image finishes loading.
  2. Download for true byte format: Clicking Save / Download matches the file extension against the blob's actual MIME type when readable (saving JPEG data as .jpg rather than mislabeling it .png).
  3. Avoid blind upscaling for fine print: Enlarging a soft 768×768 file creates smooth blurs, not real detail. If your layout only needs a smaller crop or header, crop conservatively downward or test Standard Cluster, which forwards the requested resolution to the upstream proxy unchanged (we have not tested whether it returns larger files). In our captures from the endpoint Neural Cloud uses (1 and 2 December 2026), all 124 captures that requested 1024×1024 came back 768×768 and no returned file was larger than 886 pixels on a side.

2. Security code rejected, expired, or stuck

Recorded failure: Before succeeding on the mug prompt, an attempt in our 15 November 2026 observation failed after 4.546s with "Security code expired; no image returned". Refreshing for a new code resolved the failure on the next submission (3.859s).

Code-verified reasons this happens:

  • Upstream session timeout: When the generator opens, InputPanel.jsx fetches /api/captcha.php (with credentials enabled) and receives an upstream session cookie or X-Session-ID header. Waiting too long before submitting—or switching browser profiles—lets that session expire.
  • Blocked session cookies: Strict privacy blockers stripping first-party session cookies interfere with Standard Cluster validation against /api/generate.php.
  • Canvas fallback interaction: If /api/captcha.php fails to load at all, the interface draws a local 5-digit browser canvas check so direct providers like Neural Cloud can still submit; however, because no upstream session cookie exists in fallback mode, Standard Cluster requests cannot pass upstream verification until /api/captcha.php recovers.

Verified fix: Copy your prompt before reloading, click the circular refresh button next to the 5-digit image if the tab has been idle, enter the five digits cleanly, and keep site cookies allowed when using Standard Cluster.

3. Automatic failover notices & ignored sliders

Code-verified behavior: If your chosen engine returns an HTTP error or empty result, the status chip updates to <Engine> unavailable; switching to <Next>… and a warning toast reports <Engine> failed (…); trying <Next>. Settings support may differ. while generateImages() automatically walks remaining backends in sequence:

  1. User-selected engine (Neural Cloud or Standard Cluster)
  2. Browser-configured custom HTTPS endpoint (only if set in Admin settings and not a workers.dev URL)
  3. Browser-configured Hugging Face Inference Providers token (only if saved locally)
  4. Server Cloudflare Worker route (/api/cf-worker; currently returns HTTP 503 when CF_WORKER_URL / CF_WORKER_API_KEY are unset)
  5. Standard Cluster (/api/generate.php -> upstream proxy)
  6. Neural Cloud (direct fallback)

Why settings stop applying during or after failover:

  • If failover routes your prompt to /api/cf-worker, only the prompt text is forwarded—resolution, negative prompt, guidance, steps, and seed are ignored.
  • If Neural Cloud handles the request (directly or as final fallback), Negative Prompt, Guidance Scale, and Denoising Steps are never transmitted. Its free tier is also rate-limited. Of the 134 failed attempts stored with our 135 captures (1 and 2 December 2026), 76 were HTTP 402, 56 were HTTP 503, one was HTTP 500 and one a timeout; the stored 402 messages read "Free limit reached: 1 image every 45 seconds per IP" and the stored 503 messages said the server was busy. Failed commands that saved nothing are not counted, and the provider can change its limits. From the code, asking Neural Cloud for 2 or 4 images is expected to end in an engine switch (the studio asks for the images one after another, so the second falls inside the 45 seconds), and so is sending a different prompt or seed within 45 seconds of the last image. An exact repeat probably does not. Our one recorded test inside the 45 seconds was on 18 November 2026: a script re-sent an earlier request six seconds after another picture was saved and got a reply in 0.22 s, which looks like a saved copy, while all seven attempts at other prompts, made about 6 to 36 seconds after a saved picture, were refused with HTTP 402 (timeline: /assets/observations/comparisons/capture-log.json). Our four script repeats on 2 December 2026 also took 0.2 to 0.3 s, but each was sent minutes after the previous picture, so they did not test the limit. We have not seen any of this happen in the interface.
  • If Standard Cluster polls /api/fetch.php every 2.5 seconds and receives no image after 72 checks (~3 minutes), it rejects with a timeout message.
  • If you configured an optional Hugging Face token in Admin settings, HTTP 401/403/503 or credit-deprecation errors point to token permissions, gated model acceptance, cold model loading (~20–30s), or depleted Inference Providers credits.

Code-verified storage behavior: Images are cached locally inside IndexedDB (texttoimage_studio_gallery_v2) with an automatic trim limit of 200 images, falling back to localStorage with a 50-image cap if IndexedDB cannot open. Clearing browser history, browsing in Private/Incognito windows, or hitting browser disk pressure removes cards permanently—and gallery cards never save your Seed, Negative Prompt, Steps, Guidance Scale, or appended style tags.

Why Download sometimes opens a browser tab: Browser-generated data URLs (Neural Cloud) download immediately as MIME-matched files. If an upstream proxy returns a remote CDN URL whose headers block cross-origin JavaScript fetch(), handleDownload() opens that image URL in a new tab with a warning toast so you can use your browser's right-click Save Image As… dialog.

5. Visual defects in returned pixels

Observed defects in recorded outputs

  • Wrong object count: In morning.jpg, asking for A ceramic mug produced two ceramic mugs. Untested remedies: replace indefinite articles with explicit singular wording (one solitary ceramic mug centered on an empty wooden table), try a fresh seed, or switch to Standard Cluster so negative phrases like multiple mugs, pair are transmitted.
  • Visible watermark despite request: Both morning.jpg and afternoon.jpg carry a bottom-right provider watermark watermark even though the request URL includes nologo=true. Respect upstream attribution terms rather than using automated crops to scrub marks.

Mostly untested suggestions for common diffusion defects

Label notice

The prompt adjustments below reflect common generative-image troubleshooting patterns and, except where a row says Tested, have not been individually benchmarked with live runs in this studio.

Visual symptom Why it can happen Adjustment to try (untested unless marked)
Extra or fused fingers Small hand clusters occupy few pixels while open gestures create overlapping joints. Frame closer so hands have more pixel area, rest hands naturally in pockets or holding one simple solid prop, or re-roll with a different seed.
Melted faces in wide shots Crowd/full-body views allocate only dozens of pixels per face. Switch from wide scene to a head-and-shoulders close-up, or limit foreground people to one or two subjects.
Garbled text on signs or packaging Text must be synthesized letter-by-letter across raster patches without a font renderer. Add the exact words in an editor afterwards (untested). Tested on 1 and 2 December 2026: keeping the wording to 1–3 uppercase words did not work, since none of nine recorded script captures showed the requested text. Asking for a blank sign is untested.
Cluttered or muddled scene Listing five objects + conflicting style cues competes for limited pixels. Cut secondary props down to 1–2 items, switch Art Style to Default, and describe negative space explicitly.

Troubleshooting questions

Why did "Negative Prompt" not stop blurry backgrounds?
Check which engine ran. Neural Cloud does not send negativePrompt at all, while Photorealistic adds shallow depth of field to the positive prompt, wording that may contribute to blur.

Why did generation fail completely with "temporarily unavailable"?
All engines in the failover chain errored (for instance network offline, Neural Cloud downtime, unconfigured /api/cf-worker 503, and expired/blocked upstream Standard Cluster verification). Wait briefly, refresh the security code, and report persistent errors with your requested settings via Contact.