接入点 |推送通知随机给出 OpenSSL 错误
APN | Push notification giving OpenSSL error randomly
我正在使用 gem Houston
从我的 Rails 应用程序向 Apple 设备发送推送通知。
但是从 4 月 8 日开始,它开始频繁崩溃。在一天中的某个时候,它会因大约 70-90% 的推送请求而崩溃。
在休斯顿问题上找到 this issue。
和 this discussion 在 Apple 论坛上。
但是直到现在都没有成功
错误跟踪:
OpenSSL::SSL::SSLError (SSL_connect SYSCALL returned=5 errno=0 state=SSLv3 read server session ticket A):
app/services/push_notification_service.rb:32:in `send_ios_notification'
app/services/push_notification_service.rb:18:in `send_notification_to'
app/services/push_notification_service.rb:6:in `send_notification_to_driver'
app/models/concerns/request_ticket_node_requests.rb:56:in `block in send_notifications'
app/models/concerns/request_ticket_node_requests.rb:52:in `send_notifications'
app/models/concerns/request_ticket_node_requests.rb:22:in `broadcast_notifications_to_drivers'
app/controllers/api/user_app/request_tickets_controller.rb:8:in `create'
结论和苹果服务器端的问题一样,几天后默认消失
我正在使用 gem Houston
从我的 Rails 应用程序向 Apple 设备发送推送通知。
但是从 4 月 8 日开始,它开始频繁崩溃。在一天中的某个时候,它会因大约 70-90% 的推送请求而崩溃。
在休斯顿问题上找到 this issue。
和 this discussion 在 Apple 论坛上。
但是直到现在都没有成功
错误跟踪:
OpenSSL::SSL::SSLError (SSL_connect SYSCALL returned=5 errno=0 state=SSLv3 read server session ticket A):
app/services/push_notification_service.rb:32:in `send_ios_notification'
app/services/push_notification_service.rb:18:in `send_notification_to'
app/services/push_notification_service.rb:6:in `send_notification_to_driver'
app/models/concerns/request_ticket_node_requests.rb:56:in `block in send_notifications'
app/models/concerns/request_ticket_node_requests.rb:52:in `send_notifications'
app/models/concerns/request_ticket_node_requests.rb:22:in `broadcast_notifications_to_drivers'
app/controllers/api/user_app/request_tickets_controller.rb:8:in `create'
结论和苹果服务器端的问题一样,几天后默认消失