-
Notifications
You must be signed in to change notification settings - Fork 123
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
No errors, empty result #124
Comments
+1 For this problem.
about 2 days ago started receiving this response on all
Usually it will at least will spit out an error and statusCode. |
Managed to fix the above problem by updating to <0.12.* and adding:
when creating the client as mentioned in this comment: #110 (comment) |
Experiencing the same problem for over +1 week (with laravel-notification-channels/apn), ignoring the ssl wil work for now. But I do not like this solution... |
Anyone using LetsEncrypt? Maybe the problem is connected to them. |
I think it's a better approach using:
with an up to date cacert.pem to avoid disabling the authenticity verification of the peer's certificate. More info here:
|
Seems the problem and the possible solution is described in #109 in the comment
|
I am also having this issue. Anyone can please help, really appreciate it. I am using "Token based/p8" authentication on my local (mac) a. Then on Production I was using the same setup, but it is not sending anything or rather I am not receiving anything after the I even added the cert and renamed as their corresponding hash $cert = '/etc/ssl/certs';
$this->client = new Client($this->authProvider, $production = true, [CURLOPT_CAPATH => $cert]); Details: edamov/pushok: v 0.13
php 7.3.10
curl 7.75.0 (x86_64-redhat-linux-gnu) libcurl/7.75.0 NSS/3.36 zlib/1.2.7 libpsl/0.7.0 (+libicu/50.1.2) libssh2/1.9.0 nghttp2/1.33.0
Release-Date: 2021-02-03
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS GSS-API HTTP2 HTTPS-proxy IPv6 Kerberos Largefile libz Metalink NTLM NTLM_WB PSL SPNEGO SSL UnixSockets Note: Note: But the weird part is, another service of ours, is working by just using |
Just a friendly note: we were getting this same exact result and, upon further investigation, I was able to determine that our libcurl version did not support HTTP/2. |
What libcurl version are you using? |
7.47.0 |
Keep in mind, I'm not saying that's your issue, but I was receiving the exact same result as everyone else: an empty array was being returned from Your mileage may vary |
you can use
That failed miserably.. it reported that it was an "Unsupported protocol". Often times on servers the curl CLI depends on the same library as your PHP installation, so that led me to test out our php libcurl version. Sure enough it didn't support HTTP/2.. so I have reason to believe the curl CLI tool relies on the same lib as my php-fpm. |
@wmerfalen thank you, indeed in my case the production server does not support HTTP/2. I suggest |
On a test server,
$client->push()
works correctly and notification is received.On the production server, nothing happens. There are no errors in the error log, but
$client->push()
returns an empty array.What could be causing this? Is there a verbose or debug mode?
The text was updated successfully, but these errors were encountered: