Skip to content
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

cURL errors during notification sending #44

Open
kalizi opened this issue Jul 25, 2019 · 0 comments
Open

cURL errors during notification sending #44

kalizi opened this issue Jul 25, 2019 · 0 comments

Comments

@kalizi
Copy link

kalizi commented Jul 25, 2019

Sometimes I unexpectly got two cURL errors

Here's my code:

class WelcomeNotification extends Notification {
    public function via($notifiable) {
        return ['fcm'];
    }
    public function toFcm($notifiable) {
        $message = new FcmMessage();

        $message
            ->content([
                'title' => 'Welcome to MyApp',
                'body' => 'Hi there, and welcome to MyApp!',
                'sound' => true,
            ])
            ->data(array('welcome' => true, 'test' => 1))
            ->priority(FcmMessage::PRIORITY_HIGH);

        return $message;
    }
}

On the user class I have:

public function routeNotificationForFcm($notification) {
	return $this->fcm_device_id;
}

On tinker I just take a user
$user = User::first();
and send a notification
$user->notifyNow( new WelcomeNotification() );

First time, notification get sent. Then I wait some minutes, and retry
$user->notifyNow( new WelcomeNotification() );

I got two different errors during the second sending (the errors spawn randomically), first is:

GuzzleHttp/Exception/ConnectException with message 'cURL error 35: Bulk data encryption algorithm failed in selected cipher suite. (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)'

Second is:

GuzzleHttp/Exception/ConnectException with message 'cURL error 35: A PKCS #11 module returned CKR_DEVICE_ERROR, indicating that a problem has occurred with the token or slot. (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant