Skip to content

Setting account_id in wrangler config does not work for ai binding #9568

@TimoWilhelm

Description

@TimoWilhelm

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

Metadata

Metadata

Labels

No labels
No labels

Type

No fields configured for Bug.

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions