Giter VIP home page Giter VIP logo

Comments (4)

remcoanker avatar remcoanker commented on May 13, 2024

This error happens when the result is empty. Try to get the error from curl using

echo curl_error($handle);

Add that line before line 99 in Client.php.

In my case, this error was caused by timeouts when sending >200 notifications at once. #18 fixes this case.

from pushok.

jassimkm avatar jassimkm commented on May 13, 2024

Hi @remcoanker
Now its like this

No URL set!PHP Notice: Undefined offset: 1 in /Users/anargha/apnNew/vendor/edamov/pushok/src/Client.php on line 101

Notice: Undefined offset: 1 in /Users/anargha/apnNew/vendor/edamov/pushok/src/Client.php on line 101
PHP Fatal error: Uncaught TypeError: Argument 3 passed to Pushok\Response::__construct() must be of the type string, null given, called in /Users/anargha/apnNew/vendor/edamov/pushok/src/Client.php on line 103 and defined in /Users/anargha/apnNew/vendor/edamov/pushok/src/Response.php:136
Stack trace:

from pushok.

remcoanker avatar remcoanker commented on May 13, 2024

Your curl error is No URL set!.

This looks like the same issue as #9. Make sure you meet the requirements:

PHP >= 7.0
lib-curl >= 7.46.0 (with http/2 support enabled)
lib-openssl >= 1.0.2e

Check the output of phpinfo(); to see if you have it set up correctly.

from pushok.

edamov avatar edamov commented on May 13, 2024

Yest, this issue is a duplicate of #9

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.