cloudflare / workers-sdk

⛅️ Home to Wrangler, the CLI for Cloudflare Workers®
https://developers.cloudflare.com/workers/
Apache License 2.0
2.75k stars 734 forks source link

🐛 BUG: workers.api.error.internal_server [code: 10002] #3825

Closed lfnb closed 10 months ago

lfnb commented 1 year ago

Which Cloudflare product(s) does this pertain to?

Workers for Platforms, Wrangler core

What version(s) of the tool(s) are you using?

3.5.1

What version of Node are you using?

v16.14.2

What operating system are you using?

mac

Describe the Bug

  1. wrangler init --from-dash Existing worker
  2. wrangler.toml route has script = ''
  3. remove route script
  4. wrangler deploy
  5. workers.api.error.internal_server [code: 10002]

Please provide a link to a minimal reproduction

No response

Please provide any relevant error logs

No response

viktorfa commented 10 months ago

For me, this seems to be caused by a route url having non ascii characters, e.g. ø or ö.

I have multiple sites with the same wrangler.toml, and all the ones with those characters had the error in this issue, while the others deployed fine.

mrbbot commented 10 months ago

Hey! 👋 Looks like this was fixed in wrangler@3.23.0 as part of #4470. I'm going to close this issue, but please add a comment if you're still seeing this.

mrbarletta commented 7 months ago

I had the same errors after setting WRANGLER_HYPERDRIVE_LOCAL_CONNECTION_STRING_HYPERDRIVE in the .dev.vars without quotes postgres://USER:PASS@PG_IP:5432/virtuallatinos" took me hours to realize, hope it helps someone!