djacobs / PyAPNs

Python library for interacting with the Apple Push Notification service (APNs)
http://pypi.python.org/pypi/apns/
MIT License
1.22k stars 376 forks source link

Python2.6 SSL write error #89

Open azhai opened 9 years ago

azhai commented 9 years ago
File "/var/www/apns-proxy-server/lib/python2.6/site-packages/apns.py", line 526, in send_notification_multiple
    return self.write(frame.get_frame())
  File "/var/www/apns-proxy-server/lib/python2.6/site-packages/apns.py", line 260, in write
    return self._connection().write(string)
  File "/usr/lib64/python2.6/ssl.py", line 148, in write
    return self._sslobj.write(data)
TypeError: write() argument 1 must be string or read-only buffer, not bytearray
riteshbabu commented 9 years ago

Hi

I am also getting same error.Please let me know if you found any solution for this?

Salgado82 commented 7 years ago

Hi, someone already solved this problem?