question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

🐛 BUG: api.error.service_not_found when publishing a development worker

See original GitHub issue

What version of Wrangler are you using?

2.1.0

What operating system are you using?

Linux + Github Actions

Describe the Bug

It appears wrangler publish broke in the recent version.

The error I’m getting is:

✘ [ERROR] A request to the Cloudflare API (/accounts/ACCOUNTID/workers/services/githubrepo-feature-refs-pull-46-merge) failed.

  workers.api.error.service_not_found [code: 10090]
  
  If you think this is a bug, please open an issue at:
  https://github.com/cloudflare/wrangler2/issues/new/choose

I’m getting this from just running the command npx wrangler@2 publish --name=test123 too.

When this happens the error is being thrown from this line. I’m trying to understand the difference between a script and a service (and it’s API counterparts), but I can’t really seem to figure out what I’m doing wrong

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:2
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
petebacondarwincommented, Sep 12, 2022

Hmm, maybe if the Worker has never been published before, we can’t ask for its previous publish metadata. Perhaps we just need to wrap this request in a try-catch block?

1reaction
poespascommented, Sep 12, 2022

2022-09-12_21-12

The same error occurs without --name

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot common errors with API calls in Amazon ECS
The Amazon ECS APIs might fail with one of the following errors: ... ServiceNotFoundException; UnsupportedFeatureException.
Read more >
Internal error when publishing coursework with student copies ...
I found a workaround. You can not publish an assignment with student copy using the API. You can use scheduledTime: for 5 min...
Read more >
Errors | Cloud APIs - Google Cloud
Typically a server bug. 501, NOT_IMPLEMENTED, API method not implemented by the server. 502, N/A, Network error occurred before reaching the server.
Read more >
Troubleshooting Common Problems with Web Deploy
For certain common error cases, Web Deploy will show a message ... work with the Remote Agent Service because of a bug in...
Read more >
Best Practices for API Error Handling - Nordic APIs
Error codes are almost the last thing that you want to see in an API response. Generally speaking, it means one of two...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found