dherault / serverless-offline

Emulate AWS λ and API Gateway locally when developing your Serverless project
MIT License
5.19k stars 796 forks source link

serverless 3 is not compatible #1676

Open efelipe402 opened 1 year ago

efelipe402 commented 1 year ago

Bug Report

serverless-offline requires serverless version ^1.60.0 || 2 but found version 3.29.0. Be aware that functionality might be limited or contains bugs. To avoid any issues update serverless to a later version.

offline: WARNING: Serverless Offline does not support the AWS_IAM authorization type

The serverless plugin does compile the project however with those warnings, and when you try to hit any http endpoint the applications crash, and just point that can not find node uri

trygveaa commented 1 year ago

Sounds like you're using an old version of serverless-offline. As you can see here, serverless-offline 12.0.4 (currently the latest) has a peer dependency on serverless ^3.2.0.

efelipe402 commented 1 year ago

yes, you are right @trygveaa , I have read the logs and realize that the problems come from a serverless-offline plugin which does not work with cron task lambda definition, I have a lambda that is scheduled to call an api every 24 hour but using serverless-offline for testing locally throw error, however at the moment of deployment to aws, its working the cron task and calling the api, without issues, its only throwing error at testing locally, it was working with version 7 of serverless-offline, but using version serverless framework version 2, in the version 3 has dependencies issues.

any comment, thanks?

image image