• 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

    (@isaumya)

    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?

    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 2 years, 10 months ago by 5 Star Plugins. Reason: Add oops

    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

    (@isaumya)

    Hi @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?

    Hi @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

    (@isaumya)

    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?

    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

    (@isaumya)

    Hi @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.