filestack / filestack-php

Official PHP SDK for Filestack - API and content management system that makes it easy to add powerful file uploading and transformation capabilities to any web or mobile application.
https://www.filestack.com
Apache License 2.0
55 stars 32 forks source link

Call to undefined function GuzzleHttp\Promise\settle() #62

Open stevenmaguire opened 10 months ago

stevenmaguire commented 10 months ago

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?

tomgibb commented 8 months ago

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
jake-lundberg commented 7 months ago

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.

stevenmaguire commented 7 months ago

@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.

tomgibb commented 7 months ago

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

stevenmaguire commented 7 months ago

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.