puter icon indicating copy to clipboard operation
puter copied to clipboard

`me.puter.ai.txt2img` hangs on workers

Open reynaldichernando opened this issue 2 months ago • 3 comments

hi team, I got this error when running txt2img (as me.puter) in workers

Image

repro worker: https://rey-txt2img.puter.work/txt2img

the code

router.get('/txt2img', async ({request}) => {
    try {
        const data = JSON.stringify(await me.puter.ai.txt2img('A picture of a cat.', true));
        return 'result: ' + data;
    } catch (error) {
        return 'error: ' +   error;
    }
});

reynaldichernando avatar Nov 05 '25 04:11 reynaldichernando

I suspect it's detecting how long a request is taking (?) although in this case i'm using the testMode

reynaldichernando avatar Nov 05 '25 04:11 reynaldichernando

fyi this also happens for txt2vid and txt2speech

reynaldichernando avatar Nov 05 '25 09:11 reynaldichernando

this is because no dom api I think, txt2img is weird

ProgrammerIn-wonderland avatar Nov 06 '25 03:11 ProgrammerIn-wonderland