flow-agent icon indicating copy to clipboard operation
flow-agent copied to clipboard

Bug: Image generation fails with PUBLIC_ERROR_UNUSUAL_ACTIVITY when using browserless captcha token

Open haiconmeo opened this issue 1 month ago • 0 comments

Bug: Image generation fails with PUBLIC_ERROR_UNUSUAL_ACTIVITY when using browserless captcha token

Command

python main.py image "a glowing crystal lotus on calm water" --aspect 4:3 --model gem_pix_2

Actual result

The image request reaches Flow, but no image is returned. The engine exits with code 1:

PUBLIC_ERROR_UNUSUAL_ACTIVITY
model: GEM_PIX_2
job: acct-b7865675-675
account: acct-4734f88f1fa7

The error indicates that Flow rejected the reCAPTCHA assessment associated with the request:

The server declined the reCAPTCHA assessment, not the model and not the project.

Expected result

A valid image-generation request should return an image when the account is signed in and the selected model (gem_pix_2) is available.

Notes

  • This does not appear to be a prompt, model, or project configuration issue.
  • The request transport is accepted, but Flow rejects the browserless HTTP captcha token as PUBLIC_ERROR_UNUSUAL_ACTIVITY.
  • Tokens minted through browserless HTTP appear to receive a lower trust score and may be temporarily refused.
  • The same model/project can work again later, suggesting a temporary anti-abuse or reCAPTCHA reputation decision.

Current workaround

Use a token minted from a real browser page:

  1. Load the browser extension.
  2. Sign in to Flow in a normal browser tab.
  3. Run the command with --captcha broker.

Example:

python main.py image "a glowing crystal lotus on calm water" --aspect 4:3 --model gem_pix_2 --captcha broker

Requested improvement

  • Detect PUBLIC_ERROR_UNUSUAL_ACTIVITY and return a concise actionable message instead of a generic “no image returned” failure.
  • Recommend --captcha broker automatically for this specific error.
  • Avoid retrying browserless captcha tokens aggressively, since Flow may only accept the client again after some time.

haiconmeo avatar Oct 15 '26 03:10 haiconmeo