web-push-libs / web-push-php

Web Push library for PHP
MIT License
1.71k stars 298 forks source link

Cannot upgrade GuzzleHttp to 6.5.0 #261

Closed ghnp5 closed 4 months ago

ghnp5 commented 4 years ago

Setup

Problem

When upgrading to GuzzleHttp 6.5.0, the following error happens:

Uncaught Error [0]: Call to undefined method Error::getRequest()

at /opt/app/vendor/Minishlink/WebPush/WebPush.php(180)

0 /opt/app/vendor/GuzzleHttp/Promise/Promise.php(203): Minishlink\WebPush\WebPush->Minishlink\WebPush{closure}(Object(Error))

1 /opt/app/vendor/GuzzleHttp/Promise/Promise.php(156): GuzzleHttp\Promise\Promise::callHandler(2, Object(Error), Array)

2 /opt/app/vendor/GuzzleHttp/Promise/TaskQueue.php(47): GuzzleHttp\Promise\Promise::GuzzleHttp\Promise{closure}()

3 /opt/app/vendor/GuzzleHttp/Handler/CurlMultiHandler.php(118): GuzzleHttp\Promise\TaskQueue->run()

4 /opt/app/vendor/GuzzleHttp/Handler/CurlMultiHandler.php(145): GuzzleHttp\Handler\CurlMultiHandler->tick()

5 /opt/app/vendor/GuzzleHttp/Promise/Promise.php(246): GuzzleHttp\Handler\CurlMultiHandler->execute(true)

6 /opt/app/vendor/GuzzleHttp/Promise/Promise.php(223): GuzzleHttp\Promise\Promise->invokeWaitFn()

7 /opt/app/vendor/GuzzleHttp/Promise/Promise.php(267): GuzzleHttp\Promise\Promise->waitIfPending()

8 /opt/app/vendor/GuzzleHttp/Promise/Promise.php(225): GuzzleHttp\Promise\Promise->invokeWaitList()

9 /opt/app/vendor/GuzzleHttp/Promise/Promise.php(62): GuzzleHttp\Promise\Promise->waitIfPending()

10 /opt/app/vendor/Minishlink/WebPush/WebPush.php(185): GuzzleHttp\Promise\Promise->wait()

11 Minishlink\WebPush\WebPush->flush()

Features Used

Gugu7264 commented 4 months ago

I guess this issue is kinda outdated and could be closed 👀 Cannot reproduce with Guzzle 7.8.1

ghnp5 commented 4 months ago

Thanks. I might be fixed at this point, yeah. I don't currently have this issue.