예를들면 No module named 'werkzeug' 같은 내용의 에러가 뜬다면
이제는 간단하게 해결할 수 있다.
먼저 해당 서버리스 디렉토리에서 터미널을 열어
sls plugin install -n serverless-wsgi 을 설치한다.
다음에 재배포해주면 해결된다...
해결 !
참고 :
https://www.serverless.com/plugins/serverless-wsgi
Serverless Framework: Plugins
The Serverless Framework Plugin Registry. Search thousands of Serverless Framework plugins.
www.serverless.com
https://github.com/serverless/serverless-python-requirements/issues/469
Unable to import module 'wsgi_handler': No module named 'werkzeug' · Issue #469 · serverless/serverless-python-requirements
I keep getting this error in my AWS logs when trying to deploy using serverless: Unable to import module 'wsgi_handler': No module named 'werkzeug' It seems that the zip folder cont...
github.com
감사합니다 덕분에 한번에 해결했어요...
심지어 버전 2.0 부터 해결되었다하니 조금 허무하다... ^^....
'Framework > 서버리스(serverless)' 카테고리의 다른 글
서버리스 Internal Server Error 나 "Unable to import {}".format(config["app"]) 일 때 확인해야 할 것 (0) | 2022.11.19 |
---|---|
서버리스 프레임워크 에러 : You have not registered a user account (0) | 2022.04.23 |