-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting Int(0)/String(0) back when trying to send any push notification #121
Comments
@schofs Could you please check that your php is compiled against Curl 7.46+ ? |
PHP-CLI and PHP-FPM can have different compiled versions of curl. Did you check this also? |
When running the following from the command line:
I get:
Is the |
Now I have no idea what can be wrong |
If there's no errors coming back, does that suggest the curl is failing? I've tested that curl itself is working, so it's not that curl itself can't be called, but I'm wondering why there are no actual errors coming back. |
OK - I've worked out the issue. Having gone through the code and looked at where the failure is, it's that the Curl requests to https sites are failing. So I added the following to
And it's working now! |
Seems it is the same problem which was fixed in PR #110 yesterday |
@schofs I'm facing the same issue as you, but due to security reasons, we could not disable CURLOPT_SSL_VERIFYPEER by adding the above option. Any suggestion @edamov? |
@dinhdanh you can use this approach we have discussed today. |
I think @andrew-bibby has uncovered the actual bug in Linux that's caused this, their comment on the related issue on a Laravel implementation of this library includes more information and a solution for the time being. |
Have been setting up a new server, which I believe meets the spec. I've got a live app at the moment using the old APNS setup, so I know the apple side of things is set up correctly, and I'm using a device token ID that I know is valid because it's the one I successfully use to send push notifications to using the old system.
Ubuntu 20.10
Apache 2.4.46
HTTP2
lib-curl > 7.46
PHP >7.2
Open SSL >1.0.2e
Execution file I run to send the push (using https:// url)
This is the output I get:
What am I missing? It's the empty responses that make me think something in the system setup is wrong and no valid data is coming back.
The text was updated successfully, but these errors were encountered: