filestack-php icon indicating copy to clipboard operation
filestack-php copied to clipboard

Call to undefined function GuzzleHttp\Promise\settle()

Open stevenmaguire opened this issue 1 year ago • 5 comments

SDK version 1.1.11

File upload is failing because of an apparent issue with Guzzle promises.

CleanShot 2023-10-30 at 13 13 16@2x

Unrelated to the issue - is this package actively being maintained?

stevenmaguire avatar Oct 30 '23 18:10 stevenmaguire

I am not sure how to use Github, really, but this worked for me. Perhaps you can commit it?

  1. add use GuzzleHttp\Promise;
  2. Swap out the GuzzleHttp/Promises\settle for Promise\Utils::settle

tomgibb avatar Dec 19 '23 19:12 tomgibb

We're seeing this issue too. We had to upgrade Guzzle because other dependencies require the latest version, and we are now getting this error as well.

jake-lundberg avatar Jan 10 '24 15:01 jake-lundberg

@tomgibb there is indeed a solution here. The problem is that it does not exist in this package.

@jake-lundberg this problem is in need of a fix. I've contact Filestack support and they have brushed it off.

CleanShot 2024-01-10 at 13 15 11@2x

That was November 2023.

stevenmaguire avatar Jan 10 '24 19:01 stevenmaguire

I had to launch something sooner vs. later which led me to searching github/packagist to find a fork with the proper changes. I found one that was appropriate: https://github.com/pubpackage/filestack-php

On Wed, Jan 10, 2024 at 2:17 PM Steven Maguire @.***> wrote:

@tomgibb https://github.com/tomgibb there is indeed a solution here. The problem is that it does not exist in this package.

@jake-lundberg https://github.com/jake-lundberg this problem is in need of a fix. I've contact Filestack support and they have brushed it off. @.*** (view on web) https://github.com/filestack/filestack-php/assets/1851973/a7133e40-41f6-4c2b-bca1-6e171b5ac1d0

That was November 2023.

— Reply to this email directly, view it on GitHub https://github.com/filestack/filestack-php/issues/62#issuecomment-1885522625, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD45U3KR5TB2OPDUYIWWSTLYN3SLHAVCNFSM6AAAAAA6WOTEV2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBVGUZDENRSGU . You are receiving this because you were mentioned.Message ID: @.***>

-- 347.237.2778

tomgibb avatar Jan 10 '24 21:01 tomgibb

Thanks @tomgibb - that is a useful find. Perhaps @pubpackage is open to creating a pull request against this package? Although considering there is PR #55 from 2021 still open, getting a PR reviewed a merged may also be asking too much.

stevenmaguire avatar Jan 11 '24 02:01 stevenmaguire