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

deploying returns 401 status code #8

Open
insanity54 opened this issue Jul 2, 2023 · 0 comments
Open

deploying returns 401 status code #8

insanity54 opened this issue Jul 2, 2023 · 0 comments

Comments

@insanity54
Copy link

insanity54 commented Jul 2, 2023

Thank you for this library. I'm getting started with version 0.2.2 and I've been unable to deploy so far.

First I initted.

The following environment file is used: '/home/chris/.bunny-cli/.env'
The environment file does not exist. Creating a new one...

In order for the Bunny CLI to work properly you need to store your Bunny CDN API token.
You can find your API Token in your Account Settings (https://dash.bunny.net/account/settings).

 What is your API Token?:
 > 

(I filled in the API with my API key at dash.bunny.net/account/settings, and I entered my storage zone and pull zones.)

Then I attempted deploy, where I received an error.

$ bunny deploy --dir=_site -v
- Hashing files...
✔ Finished hashing 1601 files
- CDN fetching files and directories from cache...
The storage api returns 401 which is an invalid status code.

No idea why this is failing. I'm not familiar with PHP so I haven't made sense of the code yet. I verified contents of ~/.bunny-cli/.env and it all looks valid.

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

1 participant