Workers Error 10015 workers.api.error.not_entitled

I created a token having the default template authorizations on Workers (Edit)

When I use the command :

curl -s -H "Authorization: Bearer ..." -X PUT -F "[email protected]:\Projects/server/public/metadata.json;type=application/json" -F "[email protected]:/Projects/server/public/index.mjs;type=application/javascript+module" -F "[email protected]:/Projects/server/public/api.mjs;type=application/javascript+module" ...etc...

The result is :

  "result": null,
  "success": false,
  "errors": [
      "code": 10015,
      "message": "workers.api.error.not_entitled"
  "messages": []

And indeed when I try both


curl -X GET "" -H "Authorization: Bearer ..." -H "Content-Type:application/json"

I have zero worker registered.

I don’t understand what to do to fix this.

Hi Denis,

I see you’re trying to upload a Worker using the new modules system we released with Durable Objects. For now, this is only available to users in the beta, which is why you are receiving a “not entitled” error.

In the meantime, we recommend using wrangler to upload Workers.

Yes !

I do like APIs and use a lot await import, that’s why I sought this upload method, but didn’t know it was in beta. Thanks for the info ! :slight_smile:

I just registered for the beta through :

With wrangler, I think there is a fix to use await import while having everything packed in one file. It’s tricky (Strings read as Blob and converted to JS modules) but could work.