Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 BUG:Wrangler SDK can't deploy workers #3710

Closed
anyatibrian opened this issue Aug 7, 2023 · 1 comment
Closed

🐛 BUG:Wrangler SDK can't deploy workers #3710

anyatibrian opened this issue Aug 7, 2023 · 1 comment

Comments

@anyatibrian
Copy link

Which Cloudflare product(s) does this pertain to?

Wrangler core

What version(s) of the tool(s) are you using?

3.4.0

What version of Node are you using?

v16.17.0

What operating system are you using?

MacOS Ventura

Describe the Bug

Getting this error

Banyatis-MacBook-Pro:find-stream-chat-user banyati$ wrangler deploy
 ⛅️ wrangler 3.4.0
------------------
✘ [ERROR] ParseError: A request to the Cloudflare API (/accounts/96f8637892042b2b1c3cd1569ba7f2d9/workers/services/find-stream-chat-user) failed.

      at throwFetchError (/usr/local/lib/node_modules/wrangler/wrangler-dist/cli.js:121134:17)
      at fetchResult (/usr/local/lib/node_modules/wrangler/wrangler-dist/cli.js:121087:5)
      at processTicksAndRejections (node:internal/process/task_queues:96:5)
      at async deploy (/usr/local/lib/node_modules/wrangler/wrangler-dist/cli.js:147720:31)
      at async Object.deployHandler [as handler]
  (/usr/local/lib/node_modules/wrangler/wrangler-dist/cli.js:138267:3) {
    text: 'A request to the Cloudflare API
  (/accounts/96f8637892042b2b1c3cd1569ba7f2d9/workers/services/find-stream-chat-user) failed.',
    notes: [ { text: 'Authentication error [code: 10000]' } ],
    location: undefined,
    kind: 'error',
    code: 10000
  }


Total Upload: 1.41 KiB / gzip: 0.62 KiB

✘ [ERROR] A request to the Cloudflare API (/accounts/96f8637892042b2b1c3cd1569ba7f2d9/workers/scripts/find-stream-chat-user) failed.

  Authentication error [code: 10000]
  
  If you think this is a bug, please open an issue at:
  https://github.com/cloudflare/workers-sdk/issues/new/choose`
```
whenever I deploy, tried setting up the CLOUDFLARE_API_TOKEN, CLOUDFLARE _API_KEY AND CLOUDFLARE API image. but still the above error

### Please provide a link to a minimal reproduction

_No response_

### Please provide any relevant error logs

_No response_
@anyatibrian anyatibrian added the bug Something that isn't working label Aug 7, 2023
@1000hz
Copy link
Contributor

1000hz commented Aug 7, 2023

Try using the wrangler login command if you're using wrangler on your local machine. The environment variable auth method is more useful when running wrangler in CI/CD. Feel free to reopen if this doesn't solve your issue.

@1000hz 1000hz closed this as completed Aug 7, 2023
@1000hz 1000hz removed the bug Something that isn't working label Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants