Title: Worker mode error
Last modified: January 19, 2022

---

# Worker mode error

 *  Resolved [Rob – 5StarPlugins / PressWizards](https://wordpress.org/support/users/presswizards/)
 * (@presswizards)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/worker-mode-error/)
 * Trying to enable worker mode for one of the sites in my CF account, getting this
   error:
 * Could not route to /accounts/workers/scripts/swcfpc_worker_1611266853, perhaps
   your object identifier is invalid? (err code: 7003) – No route for that URI (
   err code: 7000)
 * Not sure what to change in Cloudflare, I have enabled workers and have a subdomain
   set. I tried creating a service but it didn’t help, so I deleted it.

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Contributor [iSaumya](https://wordpress.org/support/users/isaumya/)
 * (@isaumya)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/worker-mode-error/#post-15275346)
 * Huh! That is wired. Are you using a access token or API key inside the plugin?
   If you are using access token does it have proper permissions set for the worker?
 *  [5 Star Plugins (Rob)](https://wordpress.org/support/users/5starplugins/)
 * (@5starplugins)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/worker-mode-error/#post-15289943)
 * Email and API Key. Non-worker mode works great, it creates the page rule, and
   clears the cache successfully.
 * Edit: Oops, posted using my other account, 5 Star… this is not 5 Star Plugins
   related.
    -  This reply was modified 4 years, 4 months ago by [5 Star Plugins (Rob)](https://wordpress.org/support/users/5starplugins/).
      Reason: Add oops
 *  Thread Starter [Rob – 5StarPlugins / PressWizards](https://wordpress.org/support/users/presswizards/)
 * (@presswizards)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/worker-mode-error/#post-15289951)
 * Email and API Key. Non-worker mode works great, it creates the page rule, and
   clears the cache successfully.
 * –
 * Posting from my personal account just for consistency and proper notifications.
 *  Plugin Contributor [iSaumya](https://wordpress.org/support/users/isaumya/)
 * (@isaumya)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/worker-mode-error/#post-15293690)
 * Hi [@presswizards](https://wordpress.org/support/users/presswizards/),
    So, you
   are not using the API token? Can you create a loom video giving showing me the
   plugin settings and what happens when you try to enable worker?
 *  Thread Starter [Rob – 5StarPlugins / PressWizards](https://wordpress.org/support/users/presswizards/)
 * (@presswizards)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/worker-mode-error/#post-15295821)
 * Hi [@isaumya](https://wordpress.org/support/users/isaumya/) correct, I am using“
   API Key” with my email.
 * I click on Enabled under Cloudflare Workers, then click Save, and it saves ok,
   then refreshes the page with “Enable Page Cache” button at the top.
 * I click that button, and I get a popup with that error.
 * Here’s from the log file:
 *     ```
       [2022-01-27 00:27:41] [cloudflare::worker_route_get_list] Request https://api.cloudflare.com/client/v4/zones/ff77a5aeea799e0e72d2a66bXXXXXXXX/workers/routes     <- (Redacted a bit if sensitive info)
       [2022-01-27 00:27:42] [cloudflare::worker_route_get_list] Response {
         "result": [],
         "success": true,
         "errors": [],
         "messages": []
       }
       ```
   
 * and then a “get_account_ids” request with a big response showing the domains 
   under my account, and then:
 *     ```
       [2022-01-27 00:27:42] [cloudflare::worker_get_list] I'm using the account ID: 
       [2022-01-27 00:27:42] [cloudflare::worker_get_list] Request https://api.cloudflare.com/client/v4/accounts//workers/scripts
       [2022-01-27 00:27:42] [cloudflare::worker_get_list] Response: {"success":false,"errors":[{"code":7003,"message":"Could not route to \/accounts\/workers\/scripts, perhaps your object identifier is invalid?"},{"code":7000,"message":"No route for that URI"}],"messages":[],"result":null}
       [2022-01-27 00:27:42] [cloudflare::worker_get_list] Error: Could not route to /accounts/workers/scripts, perhaps your object identifier is invalid? (err code: 7003) - No route for that URI (err code: 7000)
       [2022-01-27 00:27:42] [cloudflare::worker_upload] I'm using the account ID: 
       [2022-01-27 00:27:42] [cloudflare::worker_upload] Request https://api.cloudflare.com/client/v4/accounts//workers/scripts/swcfpc_worker_XXXXXXXXXX       <- (I redacted just in case)
       [2022-01-27 00:27:43] [cloudflare::worker_upload] Response: {"success":false,"errors":[{"code":7003,"message":"Could not route to \/accounts\/workers\/scripts\/swcfpc_worker_1623132188, perhaps your object identifier is invalid?"},{"code":7000,"message":"No route for that URI"}],"messages":[],"result":null}
       ```
   
 * Feel free to email me support @ presswizards.com and I can create a WP admin 
   login if you like.
 *  Plugin Contributor [iSaumya](https://wordpress.org/support/users/isaumya/)
 * (@isaumya)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/worker-mode-error/#post-15296352)
 * Hi,
    Is the worker getting created inside the cloudflare account? Also are you
   using the main cloudflare account where the domain lies or you are using a cloudflare
   account where the main account has invited you as the member and you are using
   the member account to access it? As it seems very wired. You can see the API 
   request being sent by the plugin but the plugin Cloudflare API is returning error
   which means some issue with your cloudflare account or API key. Also are you 
   using the Global API Key?
 *  Thread Starter [Rob – 5StarPlugins / PressWizards](https://wordpress.org/support/users/presswizards/)
 * (@presswizards)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/worker-mode-error/#post-15300187)
 * I don’t think the worker is getting created. Main account, although I do have
   others that have invited me as well. Using the main/global API key.
 * I was able to test and get it to work using a new API Token instead, so I will
   assume it’s some issue with the Cloudflare account itself, and leave it be.
 * Thanks for your replies.
 *  Plugin Contributor [iSaumya](https://wordpress.org/support/users/isaumya/)
 * (@isaumya)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/worker-mode-error/#post-15301351)
 * Hi [@presswizards](https://wordpress.org/support/users/presswizards/),
    Yah seems
   that way. There is no other explanation to that. As if you are using the main
   account with global API key you are not supposed to have this issue.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Worker mode error’ is closed to new replies.

 * ![](https://ps.w.org/wp-cloudflare-page-cache/assets/icon-256x256.gif?rev=3234997)
 * [Super Page Cache – Cloudflare Cache, Page Speed & Core Web Vitals](https://wordpress.org/plugins/wp-cloudflare-page-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-cloudflare-page-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/reviews/)

 * 8 replies
 * 3 participants
 * Last reply from: [iSaumya](https://wordpress.org/support/users/isaumya/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/worker-mode-error/#post-15301351)
 * Status: resolved