Wrangler error with --port option (port 9229 taken)

I am running a worker on wrangler on MacOSX Sequoia. Even though i'm launching wrangler dev with the port command it seems to be attempting to use 9229 instead, and erroring. The exact same problem is happening on my friends machine. Has anyone seen this before? I am trying to figure out the culprit
No description
4 Replies
James
James3mo ago
9229 is the default inspector port I believe. If you try changing that with --inspector-port xxxx, that might help?
segfault
segfaultOP3mo ago
Ooh thank makes sense I’ll give that a try The error message is quite deceptive
BensTechLab
BensTechLab5w ago
FYI, this is not documented in the wrangler config docs - but is mentioned only on the wrangler command line docs. Came here to find this, and tested it works in wrangler.jsonc as well! Documented here: https://developers.cloudflare.com/workers/wrangler/commands/#dev But NOT documented for wrangler config here: https://developers.cloudflare.com/workers/wrangler/configuration/#local-development-settings Could we request the wrangler config docs be updated to include inspector port? @kian sorry for the unintroduced ping... but not sure who at CF could address above docs issue? Add inspector-port docs to the wrangler configuration docs for wrangler.toml/wrangler.jsonc
James
James5w ago
I'd recommend filing a docs issue at https://github.com/cloudflare/cloudflare-docs and the team can then triage and assign as needed 😄

Did you find this page helpful?