© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•2y ago•
4 replies
yoav8888

binding and variables conflicting in env

Hi,

I have a problem with the "env" in a worker. This worker uses another worker as a service and contains a variable. The wrangler.toml looks like this:

[vars]
URL = "https://geturlforexample.com/v1/token/"

services = [
{ binding = "GET_ID", service = "getcustomerid" }
]

The problem is that if I remove the variable and leave only the service then the binding works, but if I leave the variable this seems to interfere with the binding and the worker fails. Is there a bug somewhere around this or perhaps a way to add the variable that does not interfere with the binding? thanks!
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Not binding env variables
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
2y ago
Env ,Variables in Github Workflow
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
2y ago
New Rate Limiting Binding - Impossible To Add New ENV Variables?
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
2y ago