kucoin-php-sdk icon indicating copy to clipboard operation
kucoin-php-sdk copied to clipboard

Issue with GuzzleHttp\Psr7\uri_for() function at WebSocketFeed

Open mkmnstr123 opened this issue 3 years ago • 1 comments

There is a problem with the GuzzleHttp library. It needs to be updated on the component! It crashes very badly!

[2021-12-22 09:36:04] production.ERROR: Call to undefined function GuzzleHttp\Psr7\uri_for() {"exception":"[object] (Error(code: 0): Call to undefined function GuzzleHttp\Psr7\uri_for() at /var/app/current/vendor/ratchet/pawl/src/Connector.php:126) [stacktrace] #0 /var/app/current/vendor/ratchet/pawl/src/Connector.php(38): Ratchet\Client\Connector->generateRequest('wss://ws-api.ku...', Array, Array) #1 /var/app/current/vendor/kucoin/kucoin-php-sdk/src/PrivateApi/WebSocketFeed.php(138): Ratchet\Client\Connector->__invoke('wss://ws-api.ku...') #2 /var/app/current/vendor/kucoin/kucoin-php-sdk/src/PrivateApi/WebSocketFeed.php(229): KuCoin\SDK\PrivateApi\WebSocketFeed->subscribeChannels(Array, Array, Object(Closure), NULL, Array)

mkmnstr123 avatar Dec 22 '21 15:12 mkmnstr123

"ratchet/rfc6455": "^0.3",
"guzzlehttp/psr7": "^1.8.2"

Add Them to your composer.json and update composers and done :)

Parsoolak avatar Dec 26 '21 11:12 Parsoolak