workflow not found debugging 05/05
UI shows so:
Following is my wranger.toml parts
same request made locally i get 200:
but making the same request to deployed version either through cf web ui or any other means i get hit with workflow not found.



13 Replies
Where is the Worker code that calls the Workflow?
this lives in the fetch function in the index.ts of the worker^
so the error pops when trying to call
the create method^
This is all in the same script? e.g. the Workflow and the Worker? When you deploy the Worker to prod, do you see the Workflow binding in the output? (paste the output)
Yes, both are in the same file (index.ts).
It is working totally as expected when ran locally with remote enabled. This issue is only in the deployed worker. I even tried creating a separte workflow just in case any caching related issue.
Do you suggest creating a totally new worker? (I've tried too many things but this)
I can see the binding clearly in the UI both sides
but in the playground and any other way I trigger the worker, I am hit by the oof 400
Just tried with a fresh worker and a fresh workflow, same results. (I am on the free plan, does that affect that?)

I am able to replicate the same on the starter-worflow template^
workflow*, i just ran it as-is
This seems like some issue specifically with my account?
@Helpflare any help?
What is your account ID? I can't reproduce this with the
workflows-starter
at all (unmodified).Hi @Matt Silverlock , thankyou so much for trying to help me out here! I have a demo with possibly the first customer today. getting this resolved will help immensely! but otherwise no hurry 🙂
Here's my acc id: 5b9c71dd3424b51c6f85e6a1cf6ccb70
Hi @tyx . Can you please clarify this statement? Workflows are not capable with remote development.
Ok! I believe we found the "issue"
You are trying to access the related Worker from the edit view inside dash/cf-ui. This space does not support Workflows, as of this moment.
Can you please try to call the Worker directly? Either via curl command or from the
Visit
link?Hi @Diogo Ferreira - I have exactly the same issue with a deployed workflow. Workflow lives inside of the same worker, it appears in the dashboard and build logs shows the binding. But when calling the worker to create the workflow, it's not working and I get the workflow not found error. Account 7ab19bb7db69dd2f296919bcee0c6539
Redeploying fixed the issue on our end.
@Diogo Ferreira Based on what @tyx and @raff have said, it seems we've all been running into the same issue:
When introducing a new workflow that is bound to the same worker that invokes it, it will fail with the "workflow not found" error. It will continue to fail until you redeploy the worker (with no relevant changes). Then the issue magically goes away.
This has happened to me multiple times now.
Hummm. Thank you for reporting
@Diogo Ferreira Is there a way to follow this issue? The error has resurfaced on a later deploy, and it's been affecting our development process and breaking our customers.
FYI for those in this thread - we have discovered this bug will resurface under certain deployment conditions. We have confirmed that it will at least reoccur when you manually update the worker's environment variables in the Cloudflare dashboard (which triggers a redeploy).
Posted here: https://discord.com/channels/595317990191398933/1371506630843175105/1371518511079227483