New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python-jose not part of the lambda environment? #34
Comments
Hello, Thank you for pointing that out. It actually seems that python-jose is not part of the Lambda environment anymore. |
Thanks for answering me. |
The error "invalid ELF header" means that the binaries you added to the deployment package were compiled for another architecture. For example, it is common to see this error if the package was installed with "pip" under Mac. An easy solution is to spin up an EC2 instance, then install the modules and create the deployment package there. This will include the same binaries used by the Lambda environment. |
Solution: Execute this on EC2. This creates the deployment package and sends it to a S3 bucket :
Thank you for your help ! |
Hello, I am trying to use the code here to verify if a token is valid
/Cognito/decode-verify-jwt/decode-verify-jwt.py
But I am facing an issue. My Lambda doesn't recognize jose.
Unable to import module 'lambda_function': No module named 'jose'
The text was updated successfully, but these errors were encountered: