how can i use python as runtime?
I tried your manual python test but it is not working
Serverless: GET /hello (位: hello)
Serverless: Replying timeout after 30000ms
just tested sls invoke local -f hello works
hey @Selion05 , do you have any more details to your problem?
Sure :)
I wanted to use python as runtime for one of my lambdas
so basically what I did is
git clone [email protected]:dherault/serverless-offline.git
cd serverless-offline
npm install
npm link
cd manual_test_python
npm link serverless-offline
sls offline start
and then $ curl 'http://localhost:3000/hello' -i
HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
cache-control: no-cache
content-length: 0
Date: Thu, 04 Jul 2019 07:46:58 GMT
Connection: keep-alive
I get an empty response. But if I run $ sls invoke local -f hello
{
"body": "{\"input\": {}, \"message\": \"Go Serverless v1.0! Your function executed successfully!\"}",
"statusCode": 200
}
which is what I expected.
So now I'm not sure if I forgot something or if it's a bug
hey @Selion05 just reverted a commit which broke the functionality. should be fixed with the next release. if you pull the latest master again it should work. (note: there still seems to be a timeout issue.)
from npm: I fairly safe version to use should be v5.4.2 (until master is released)
v5.6.1
Thanks @dnalborczyk for the awesome work once again! I like what you did it is so clean! Please PR next time though to ease the review process.