flow-agent
flow-agent copied to clipboard
Bug: Image generation fails with PUBLIC_ERROR_UNUSUAL_ACTIVITY when using browserless captcha token
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:
- Load the browser extension.
- Sign in to Flow in a normal browser tab.
- 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_ACTIVITYand return a concise actionable message instead of a generic “no image returned” failure. - Recommend
--captcha brokerautomatically for this specific error. - Avoid retrying browserless captcha tokens aggressively, since Flow may only accept the client again after some time.