own3d / bunny-cli Goto Github PK
View Code? Open in Web Editor NEWBunny CLI - Replicate and store your files to the edge!
License: Apache License 2.0
Bunny CLI - Replicate and store your files to the edge!
License: Apache License 2.0
This may be more of a Bunny.net issue but manifests as a false positive.
An error?
No error and no files in the Storage Zone.
$ php --version
PHP 8.2.1 (cli) (built: Jan 4 2023 16:37:54) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.1, Copyright (c) Zend Technologies
Exception executing bunny
:
PHP Fatal error: During inheritance of ArrayAccess: Uncaught ErrorException: Return type of Illuminate\Support\Collection::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/vendor/illuminate/collections/Collection.php:1459
Stack trace:
#0 phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/vendor/illuminate/collections/Collection.php(13): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()
#1 phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/.box/vendor/composer/ClassLoader.php(478): include('...')
#2 phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/.box/vendor/composer/ClassLoader.php(346): Composer\Autoload\includeFile()
#3 phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/vendor/illuminate/collections/helpers.php(15): Composer\Autoload\ClassLoader->loadClass()
#4 phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/vendor/laravel-zero/foundation/src/Illuminate/Foundation/PackageManifest.php(89): collect()
#5 phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/vendor/laravel-zero/foundation/src/Illuminate/Foundation/PackageManifest.php(78): Illuminate\Foundation\PackageManifest->config()
#6 phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/vendor/laravel-zero/foundation/src/Illuminate/Foundation/Bootstrap/RegisterFacades.php(26): Illuminate\Foundation\PackageManifest->aliases()
#7 phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/vendor/laravel-zero/framework/src/Bootstrap/RegisterFacades.php(71): Illuminate\Foundation\Bootstrap\RegisterFacades->bootstrap()
#8 phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/vendor/laravel-zero/foundation/src/Illuminate/Foundation/Application.php(243): LaravelZero\Framework\Bootstrap\RegisterFacades->bootstrap()
#9 phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/vendor/laravel-zero/foundation/src/Illuminate/Foundation/Console/Kernel.php(310): Illuminate\Foundation\Application->bootstrapWith()
#10 phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/vendor/laravel-zero/framework/src/Kernel.php(130): Illuminate\Foundation\Console\Kernel->bootstrap()
#11 phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/vendor/laravel-zero/framework/src/Kernel.php(102): LaravelZero\Framework\Kernel->bootstrap()
#12 phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/vendor/laravel-zero/framework/src/Kernel.php(89): LaravelZero\Framework\Kernel->ensureDefaultCommand()
#13 phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/bunny(34): LaravelZero\Framework\Kernel->handle()
#14 /home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny(14): require('...')
#15 /home/jansorg/.config/composer/vendor/bin/bunny(120): include('...')
#16 {main} in phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/vendor/illuminate/collections/Collection.php on line 13
PHP Fatal error: Uncaught Symfony\Component\ErrorHandler\Error\FatalError: During inheritance of ArrayAccess: Uncaught ErrorException: Return type of Illuminate\Support\Collection::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/vendor/illuminate/collections/Collection.php:1459
Stack trace:
#0 phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/vendor/illuminate/collections/Collection.php(13): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()
#1 phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/.box/vendor/composer/ClassLoader.php(478): include('...')
#2 phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/.box/vendor/composer/ClassLoader.php(346): Composer\Autoload\includeFile()
#3 phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/vendor/illuminate/collections/helpers.php(15): Composer\Autoload\ClassLoader->loadClass()
#4 phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/vendor/laravel-zero/foundation/src/Illuminate/Foundation/PackageManifest.php(89): collect()
#5 phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/vendor/laravel-zero/foundation/src/Illuminate/Foundation/PackageManifest.php(78): Illuminate\Foundation\PackageManifest->config()
#6 phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/vendor/laravel-zero/foundation/src/Illuminate/Foundation/Bootstrap/RegisterFacades.php(26): Illuminate\Foundation\PackageManifest->aliases()
#7 phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/vendor/laravel-zero/framework/src/Bootstrap/RegisterFacades.php(71): Illuminate\Foundation\Bootstrap\RegisterFacades->bootstrap()
#8 phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/vendor/laravel-zero/foundation/src/Illuminate/Foundation/Application.php(243): LaravelZero\Framework\Bootstrap\RegisterFacades->bootstrap()
#9 phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/vendor/laravel-zero/foundation/src/Illuminate/Foundation/Console/Kernel.php(310): Illuminate\Foundation\Application->bootstrapWith()
#10 phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/vendor/laravel-zero/framework/src/Kernel.php(130): Illuminate\Foundation\Console\Kernel->bootstrap()
#11 phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/vendor/laravel-zero/framework/src/Kernel.php(102): LaravelZero\Framework\Kernel->bootstrap()
#12 phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/vendor/laravel-zero/framework/src/Kernel.php(89): LaravelZero\Framework\Kernel->ensureDefaultCommand()
#13 phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/bunny(34): LaravelZero\Framework\Kernel->handle()
#14 /home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny(14): require('...')
#15 /home/jansorg/.config/composer/vendor/bin/bunny(120): include('...')
#16 {main} in phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/vendor/illuminate/collections/Collection.php:13
Stack trace:
#0 {main}
thrown in phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/vendor/illuminate/collections/Collection.php on line 13
Although things worked a few weeks ago, it's failing with an exception today.
PHP:
$ php --version
PHP 8.1.2 (cli) (built: Jan 19 2022 17:12:32) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.2, Copyright (c) Zend Technologies
Command used to upload:
bunny deploy --dir=public
Exception reported by the command above:
HP Fatal error: During inheritance of ArrayAccess: Uncaught ErrorException: Return type of Illuminate\Support\Collection::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/vendor/illuminate/collections/Collection.php:1459
Stack trace:
#0 phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/vendor/illuminate/collections/Collection.php(13): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()
#1 phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/.box/vendor/composer/ClassLoader.php(478): include('...')
#2 phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/.box/vendor/composer/ClassLoader.php(346): Composer\Autoload\includeFile()
#3 phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/vendor/illuminate/collections/helpers.php(15): Composer\Autoload\ClassLoader->loadClass()
#4 phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/vendor/laravel-zero/foundation/src/Illuminate/Foundation/PackageManifest.php(89): collect()
#5 phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/vendor/laravel-zero/foundation/src/Illuminate/Foundation/PackageManifest.php(78): Illuminate\Foundation\PackageManifest->config()
#6 phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/vendor/laravel-zero/foundation/src/Illuminate/Foundation/Bootstrap/RegisterFacades.php(26): Illuminate\Foundation\PackageManifest->aliases()
#7 phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/vendor/laravel-zero/framework/src/Bootstrap/RegisterFacades.php(71): Illuminate\Foundation\Bootstrap\RegisterFacades->bootstrap()
#8 phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/vendor/laravel-zero/foundation/src/Illuminate/Foundation/Application.php(243): LaravelZero\Framework\Bootstrap\RegisterFacades->bootstrap()
#9 phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/vendor/laravel-zero/foundation/src/Illuminate/Foundation/Console/Kernel.php(310): Illuminate\Foundation\Application->bootstrapWith()
#10 phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/vendor/laravel-zero/framework/src/Kernel.php(130): Illuminate\Foundation\Console\Kernel->bootstrap()
#11 phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/vendor/laravel-zero/framework/src/Kernel.php(102): LaravelZero\Framework\Kernel->bootstrap()
#12 phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/vendor/laravel-zero/framework/src/Kernel.php(89): LaravelZero\Framework\Kernel->ensureDefaultCommand()
#13 phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/bunny(36): LaravelZero\Framework\Kernel->handle()
#14 /home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny(14): require('...')
#15 /home/jansorg/.config/composer/vendor/bin/bunny(117): include('...')
#16 {main} in phar:///home/jansorg/.config/composer/vendor/own3d/bunny-cli/builds/bunny/vendor/illuminate/collections/Collection.php on line 13
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.
On Windows 10 when I run this bunny init
get this:
In CurlFactory.php line 211:
cURL error 60: SSL certificate problem: self signed certificate in certificate chain (see https://curl.haxx.se/libc
url/c/libcurl-errors.html) for https://api.bunny.net/storagezone
Thank you for the cli and the github-action.
I'd like to build preview-builds on to bunny.net whenever a PR is being added.
It would be great to have an option to specify a target folder.
Is there an option?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.