service binding error.. why?
any ideas why i get this Error:
worker A "consumer":
Worker B "producer":
4 Replies
Can you share your toml? How is your service binding defined in there?
(Also note that your entrypoint for the producer must be in the main file)
TOML file for consumer worker :
#:schema node_modules/wrangler/config-schema.json
name = "image-picker"
main = "src/index.js"
compatibility_date = "2024-09-09"
compatibility_flags = ["nodejs_compat"]
services = [
{ binding = "WORKER_TEXT_LABLE_MATCH", service = "ai-text-label-match" }
]
worker B producer code is in the main index file
oh
okey, wasent shown in the example on that page so had no idea to add entrypoint = "LableMatch"