Skip to content

deploying returns 401 status code #8

@insanity54

Description

@insanity54

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions