• Resolved philhagen

    (@philhagen)


    I’m getting thousands of the following error:

    PHP Fatal error: Uncaught ChrisWhite\\B2\\Exceptions\\B2Exception: Received error from B2: 20 calls/minute allowed for: API_AUTHORIZE_ACCOUNT_CALLED

    This appears to be a product of the b2-sdk-php module, and may be related to the issue logged here: https://github.com/cwhite92/b2-sdk-php/issues/20

    Given that this error throws a 5xx series error, it’s resulting in the white screen of death for the WordPress instance.

    Full error (redacted) below:
    PHP Fatal error: Uncaught ChrisWhite\\B2\\Exceptions\\B2Exception: Received error from B2: 20 calls/minute allowed for: API_AUTHORIZE_ACCOUNT_CALLED in /var/www/webapps/wordpress/<site>/wp-content/plugins/ilab-media-tools/vendor/cwhite92/b2-sdk-php/src/ErrorHandler.php:36\nStack trace:\n#0 /var/www/webapps/wordpress/<site>/wp-content/plugins/ilab-media-tools/vendor/cwhite92/b2-sdk-php/src/Http/Client.php(29): ChrisWhite\\B2\\ErrorHandler::handleErrorResponse(Object(GuzzleHttp\\Psr7\\Response))\n#1 /var/www/webapps/wordpress/<site>/wp-content/plugins/ilab-media-tools/vendor/cwhite92/b2-sdk-php/src/Client.php(411): ChrisWhite\\B2\\Http\\Client->request('GET', 'https://api.bac...', Array)\n#2 /var/www/webapps/wordpress/<site>/wp-content/plugins/ilab-media-tools/vendor/cwhite92/b2-sdk-php/src/Client.php(38): ChrisWhite\\B2\\Client->authorizeAccount()\n#3 /var/www/webapps/wordpress/<site>/wp-content/plugins/ilab-media-tools/classes/Cloud/Storage/Driver/Backblaze/B in /var/www/webapps/wordpress/<site>/wp-content/plugins/ilab-media-tools/vendor/cwhite92/b2-sdk-php/src/ErrorHandler.php on line 36, referer: https://<site>/2018/06/<page>/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author interfacelab

    (@interfacelab)

    Support for Backblaze is going away in 3.0.

    What a shame, I was looking forward to using Backblaze as my media storage server. I would really wish you reconsider that and update the API.

    Plugin Author interfacelab

    (@interfacelab)

    Throttling is fixed in 3.0, as is using application keys.

    3.0 should be out in a week or two. Note for 3.0 the Backblaze storage provider is an add-on plugin that has to be installed along side Media Cloud. All Backblaze support has been removed from the main plugin and put into the add-on. This add-on will be completely unsupported (and open-source).

    I also can’t reiterate enough that B2 is not a good option for this kind of thing. It’s very slow, uploads often have to be retried, the API is not very well designed, it doesn’t support pre-signed URLs, no direct upload support, I could go on and on. It’s very much a case of you getting what you paid for.

    But what do I know? ??

    Thanks!

    Also, I don’t really answer questions in this forum anymore, if you have any other support questions, please post here: https://discourse.interfacelab.io/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘B2 API Throttling’ is closed to new replies.