Created
October 26, 2020 09:43
-
-
Save begimai/41153643c8eba79a8441aa1d31b5e38b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/usr/local/lib/python3.8/code.py", line 90, in runcode | |
exec(code, self.locals) | |
File "<console>", line 1, in <module> | |
File "/usr/local/lib/python3.8/site-packages/jwt/api_jwt.py", line 64, in encode | |
return super(PyJWT, self).encode( | |
File "/usr/local/lib/python3.8/site-packages/jwt/api_jws.py", line 113, in encode | |
key = alg_obj.prepare_key(key) | |
File "/usr/local/lib/python3.8/site-packages/jwt/algorithms.py", line 351, in prepare_key | |
key = load_pem_private_key(key, password=None, backend=default_backend()) | |
File "/usr/local/lib/python3.8/site-packages/cryptography/hazmat/primitives/serialization/base.py", line 16, in load_pem_private_key | |
return backend.load_pem_private_key(data, password) | |
File "/usr/local/lib/python3.8/site-packages/cryptography/hazmat/backends/openssl/backend.py", line 1182, in load_pem_private_key | |
return self._load_key( | |
File "/usr/local/lib/python3.8/site-packages/cryptography/hazmat/backends/openssl/backend.py", line 1411, in _load_key | |
self._handle_key_loading_error() | |
File "/usr/local/lib/python3.8/site-packages/cryptography/hazmat/backends/openssl/backend.py", line 1465, in _handle_key_loading_error | |
raise ValueError("Could not deserialize key data.") | |
ValueError: Could not deserialize key data. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment