votes up 1

Unable to find a algorithm for key: %s

github stars 3952
Exception Class:

Raise code

                    raise InvalidKeyError("Unsupported crv: %s" % crv)
                raise InvalidKeyError("Unsupported kty: %s" % kty)

        self.Algorithm = self._algorithms.get(algorithm)

        if not self.Algorithm:
            raise PyJWKError("Unable to find a algorithm for key: %s" % self._jwk_data)

        self.key = self.Algorithm.from_jwk(self._jwk_data)

    def from_dict(obj, algorithm=None):
        return PyJWK(obj, algorithm)
🙏 Scream for help to Ukraine
Today, 3rd July 2022, Russia continues bombing and firing Ukraine. Don't trust Russia, they are bombing us and brazenly lying in same time they are not doing this 😠, civilians and children are dying too! We are screaming and asking exactly you to help us, we want to survive, our families, children, older ones.
Please spread the information, and ask your governemnt to stop Russia by any means. We promise to work extrahard after survival to make the world safer place for all.

Ways to fix

votes up 2 votes down

Mar 09, 2022 lehuyvu1852001 answer

Add a possible fix

Please authorize to post fix