Wrangler publish returns 500 error

My Cloudflare worker deployments using wrangler have suddenly started to return errors:

CF_API_TOKEN=token npx wrangler publish --env prod-ie

And prod-ie is defined in wrangler.toml as follows:

[env.prod-ie]
zone_id = "ZONE_ID"
vars = { ENVIRONMENT = "production" }
routes = [
  "https://www.example.com/images/*",
  "https://www.example.com/wp-content/logos/*"
]

I have checked that the authentication token has required privileges to edit workers. When I run the command, the following output is displayed:

Warning: webpack's output filename is being renamed to worker.js because of requirements from the Workers runtime
✨  Built successfully, built project size is 1 KiB.
Error: Something went wrong! Status: 500 Internal Server Error, Details {
  "result": null,
  "success": false,
  "errors": [
    {
      "code": 10013,
      "message": "workers.api.error.unknown"
    }
  ],
  "messages": []
}

Any clues what I should do to get publishing working again?

1 Like

I tried it again after some time, and now publishing works properly. It was some internal error on Cloudflare’s side.

I’m seeing this issue too. Are we observing the Cloudflare API rate limit here? If so, it would be helpful if Cloudflare returned rate limiting info, and if Wrangler displayed this.

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