Urgent zone_id don't work

C:\Users\servi\Desktop\mydir>wrangler publish index.js
:partly_sunny: wrangler 2.0.6

▲ [WARNING] Processing wrangler.toml configuration:

- 😶 Ignored: "type":
  Most common features now work out of the box with wrangler, including modules, jsx,

typescript, etc. If you need anything more, use a custom build.
- Deprecation: “zone_id”:
This is unnecessary since we can deduce this from routes directly.

Uploaded security (2.94 sec)

X [ERROR] X [ERROR] Received a bad response from the API

workers.api.error.zone_not_specified - When using wildcard host ssl for saas entitlement you

must
specify the zone per route using “zone_id” or “zone_name” [code: 10082]

If you think this is a bug, please open an issue at:
https://github.com/cloudflare/wrangler2/issues/new

tell me this error but the zone_id is ok, why?

We’d need to see your wrangler.toml to be able to give any suggestions.

1 Like

name = “security”
type = “webpack”

account_id = “myaccountid”
compatibility_date = “2022-03-16”
route = “https://security.killteamseller.it
workers_dev = false
zone_id = “myzoneid of the domain”
[vars]
UPSTASH_REDIS_REST_TOKEN = “MYTOKEN”
UPSTASH_REDIS_REST_URL = “URL”
TOTAL_ACTIVE_USERS = 3
SESSION_DURATION_SECONDS = 30

Change your route to route = { pattern = "https://security.killteamseller.it", zone_id = "ZONE_ID" }
(Put your zone ID there of course)

Also note this will only fire on index and not all paths, to run on all paths you’d want /* at the end of your pattern


X [ERROR] X [ERROR] Invalid character, expected whitespace, comma (,) or close bracket (])

  C:\Users\servi\Desktop\waiting-room-master\wrangler.toml:6:68:
    6 │ route = { pattern = "https://security.killteamseller.it”, zone_id =

“myzoneid” }
╵ ^

If you think this is a bug, please open an issue at:
https://github.com/cloudflare/wrangler2/issues/new
name = "security"
type = "webpack"

account_id = "myaccountid"
compatibility_date = "2022-03-16"
route = { pattern = "https://security.killteamseller.it”, zone_id = "myzoneid" }
workers_dev = false
[vars]
UPSTASH_REDIS_REST_TOKEN = "mytoken"
UPSTASH_REDIS_REST_URL = "myurl"
TOTAL_ACTIVE_USERS = 3
SESSION_DURATION_SECONDS = 30

Probably due to the good old iOS “smart quotes”, not sure why it copied it from your message. Anyway, the closing quote on pattern, just remove it and re-add it as a proper quote.

So pattern = "https://security.killteamseller.it"

thank you, :heart:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.