FriendsOfShopware / FroshPlatformBunnycdnMediaStorage

This plugin allows you to use BunnyCDN as a media storage.
MIT License
8 stars 9 forks source link

[INFO] bunny.net temporarily disabled S3 protocol, no upload possible #25

Closed dsturm closed 2 years ago

dsturm commented 2 years ago

PHP Version

8.1.7

Shopware Version

6.4.13.0

Actual behaviour

We're currently having an issue, where we cannot upload / rename any file over this plugin. The log files just showed up

request.CRITICAL: Uncaught PHP Exception AsyncAws\Core\Exception\Http\ClientException: "HTTP 401 returned for "https://storage.bunnycdn.com/***/media/1d/73/78/1657781118/banner.jpg"." at /***/vendor/async-aws/core/src/Response.php line 422 {"exception":"[object] (AsyncAws\\Core\\Exception\\Http\\ClientException(code: 401): HTTP 401 returned for \"https://storage.bunnycdn.com/***/media/1d/73/78/1657781118/banner.jpg\". at /***/vendor/async-aws/core/src/Response.php:422)"} []

After debugging and getting in contact with bunny support, it turns out, they disabled support for the (experimental) S3 protocol.

Expected behaviour

Upload / rename files works.

Steps to Reproduce?

tinect commented 2 years ago

Hey,

Update is on the way.

I've contacted bunnycdn yesterday, and I'm really unhappy 💯 Their entire system was down for some time, also FTP and storage APIs. They are calling it "experimental" now because they had these issues. Apart from that, the owner told me we can use this endpoint.

For the moment, they disable the not published S3-endpoint.

See https://github.com/tinect/bunnycdn-s3-flysystem-adapter/issues/2

Thank you.

dsturm commented 2 years ago

Thanks @tinect. ~I'll take a look at the bunnycdn-sftp-flysystem-adapter~ I'll update to 2.2.2 👍

mateuszfl commented 2 years ago

Why you dont use: https://packagist.org/packages/platformcommunity/flysystem-bunnycdn#v1.3.1 ? This native interface seems much faster than SFTP.

tinect commented 2 years ago

Hey @mateuszfl Thank you for bringing this up for me again.

Had seen it in a really early state.

I miss a feature, which is also skipped in tests for flysystemV3: https://github.com/PlatformCommunity/flysystem-bunnycdn/blob/713c6e757b9c31299f06d9dcb6a9712970943b76/tests/FlysystemTestSuite.php#L90-L93

Will check it in the next days. Thank you.

EDIT: https://github.com/FriendsOfShopware/FroshPlatformBunnycdnMediaStorage/issues/26 :-)

SwissCommerce commented 2 years ago

Not sure if this is related -> image

aliflux-omo commented 1 year ago

Hi. Is the bunny S3 api up yet? I can't find its documentation anywhere.

tinect commented 1 year ago

Hey @aliflux-omo No, it was a hidden feature they shut down meanwhile.

Check: https://github.com/tinect/bunnycdn-s3-flysystem-adapter/issues/2

DezyNation commented 1 year ago

Hi, Is there any update on this? It's been more than a year.

tinect commented 1 year ago

no, there has been no update. you might want to ask bunny.net when they re-enable S3.