Setting account_id in wrangler config does not work for ai binding
What versions & operating system are you using?
wrangler 4.19.2
Please provide a link to a minimal reproduction
https://github.com/TimoWilhelm/mre-wrangler-account-id
Describe the Bug
I'm running multiple workers parallel locally in mixed mode with AI binding and I'm getting the following message:
error: InferenceUpstreamError: Error: More than one account available but unable to select one in non-interactive mode.
Please set the appropriate account_id in your Wrangler configuration file or assign it to the CLOUDFLARE_ACCOUNT_ID environment variable.
However, setting in account_id in my wrangler config doesn't seem to work, only the setting CLOUDFLARE_ACCOUNT_ID as an env var for every process works for me. Setting it in the wrangler configs would be much nicer for my use case.
Please provide any relevant error logs
No response
Potentially related to https://jira.cfdata.org/browse/DEVX-1857, which is planned for after release
@TimoWilhelm thanks for the issue 🙂
I've opened #10259 to hopefully address this issue, however I cannot confirm whether if fixes your specific issue since the minimal reproduction you shared seems not to be available anymore, is there any chance you could give the PR's prerelease package a try and let me know if it solves your issue? 🙂🙏
Hi @dario-piotrowicz, sorry seems like the MRE repo was deleted I put it back up.
ok thanks 😄 🙏