tl_jacobT
Windmill3mo ago
20 replies
tl_jacob

I'm running a Windmill app in an iframe

I'm running a Windmill app in an iframe and using JWT for authentication. The Job logs component renders job output correctly, however the Flow Status UI component isn't working properly. Job updates aren't propagating—the nodes in the flow are completing but the UI isn't updating accordingly.
I'm seeing the following error repeatedly in the console:
Bad request: As a non logged in user, you can only see jobs ran by anonymous users

I've configured the app to require user login, so I am confident that the JWT auth is working for everything except the flow status UI component.

Windmill version: v1.554.0
- also doesn't work on 1.552.1

I've also confirmed this works on v1.500.1

Looks like it has to do with windmill's migration to sse vs polling for job status. At least that's the main difference I can tell between 1.500.1 and 1.552.1 / 1.554.0

Edit: The errors manifest with the Job logs component too if the job runs for > 1 second (wrote a simple script with a sleep(1) to test).
Was this page helpful?