Closed mlusas closed 7 years ago
Same problem here:
PHP Notice: Undefined offset: 1 in /vendor/edamov/pushok/src/Client.php on line 99
Same problem here at the same line.
I think it is the same issue as here #7. Please read my answer(comment)
In my case this was indeed caused by curl not having http2 support on the Mac.
To solve I did the following things (assuming you are using homebrew):
First check if you actually have http2 support by trying to curl to an http2 url:
curl -I --http2 https://www.cloudflare.com/
this should result in an unsupported protocol
error
Next install curl
brew install curl --with-nghttp2
brew link curl --force
Finally recompile php and tell it to use the curl library provided by homebrew
brew reinstall php71 --with-homebrew-curl
Hello, I am getting the same error in:
vendor/edamov/pushok/src/Client.php:122
@antonioreyna Do you have lib-curl
compiled with http/2 support on the server? What version of pushok
library do you use?
It was the http2 issue i just installed and now it works great. thank you!
@antonioreyna Do you have
lib-curl
compiled with http/2 support on the server? What version ofpushok
library do you use?
Hello, I've followed the Readme, and when triggering $client->push() via Laravel, I receive the follow error. We've tried triggering a notification via Node.js using this tutorial and we were able to successfully trigger a notification.
Any thoughts on how we may be able to fix or troubleshoot this? Thank you,