PyAPNs2 icon indicating copy to clipboard operation
PyAPNs2 copied to clipboard

Failing to find Algorithm 'ES256' in aws lambda

Open malhotraguy opened this issue 3 years ago • 0 comments

Even after installing crypography library it is complaining. Please refer to the traceback below:- Client is created with token authentication

{ "errorMessage": "Algorithm 'ES256' could not be found. Do you have cryptography installed?", "errorType": "NotImplementedError", "requestId": "37b6f5b9-911c-4de1-a7aa-6e06689f0396", "stackTrace": [ " File \"/var/task/send_ios_push.py\", line 140, in handler\n raise e\n", " File \"/var/task/send_ios_push.py\", line 114, in handler\n apns_client.send_notification(token_hex=resp[\"pushToken\"],\n", " File \"/var/task/apns2/client.py\", line 93, in send_notification\n stream_id = self.send_notification_async(token_hex, notification, topic, priority, expiration, collapse_id)\n", " File \"/var/task/apns2/client.py\", line 141, in send_notification_async\n auth_header = self.__credentials.get_authorization_header(topic)\n", " File \"/var/task/apns2/credentials.py\", line 60, in get_authorization_header\n token = self._get_or_create_topic_token()\n", " File \"/var/task/apns2/credentials.py\", line 88, in _get_or_create_topic_token\n jwt_token = jwt.encode(token_dict, self.__auth_key,\n", " File \"/var/task/jwt/api_jwt.py\", line 64, in encode\n return super(PyJWT, self).encode(\n", " File \"/var/task/jwt/api_jws.py\", line 118, in encode\n raise NotImplementedError(\n" ] }

malhotraguy avatar Aug 22 '22 13:08 malhotraguy