Started getting error [code: 10004] after removing sentry integration

When I try deploying my worker using wrangler I get the following error:
wrangler deploy -c wrangler.toml                                                                            (base) 
 ⛅️ wrangler 3.41.0 (update available 3.48.0)
-------------------------------------------------------
Your worker has access to the following bindings:
- Durable Objects:
  - FEED_ITEM: FeedItem
- Queues:
  - QUEUE: wirehead-queue
- R2 Buckets:
  - BUCKET: wirehead-bucket
Total Upload: 371.40 KiB / gzip: 66.36 KiB

✘ [ERROR] A request to the Cloudflare API (/accounts/18a48f98e1f66ce291e862b59c7d9fed/workers/scripts/wirehead-back-end) failed.

  workers.api.error.malformed_param: must specify either 'script' or 'service' [code: 10004]
  
  If you think this is a bug, please open an issue at:
  https://github.com/cloudflare/workers-sdk/issues/new/choose

Notably the thing I did before this started happening was add and remove the sentry logpush integration. Is there anything I can do other than deleting and recreating the worker?
Was this page helpful?