Giter VIP home page Giter VIP logo

Comments (7)

edamov avatar edamov commented on May 13, 2024 1

@antonioreyna Do you have lib-curl compiled with http/2 support on the server? What version of pushok library do you use?

from pushok.

isaiasmac avatar isaiasmac commented on May 13, 2024

Same problem here:

PHP Notice: Undefined offset: 1 in /vendor/edamov/pushok/src/Client.php on line 99

from pushok.

lucadegasperi avatar lucadegasperi commented on May 13, 2024

Same problem here at the same line.

from pushok.

edamov avatar edamov commented on May 13, 2024

I think it is the same issue as here #7.
Please read my answer(comment)

from pushok.

lucadegasperi avatar lucadegasperi commented on May 13, 2024

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

from pushok.

antonioreyna avatar antonioreyna commented on May 13, 2024

Hello, I am getting the same error in:

vendor/edamov/pushok/src/Client.php:122

from pushok.

antonioreyna avatar antonioreyna commented on May 13, 2024

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 of pushok library do you use?

from pushok.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.