Closed BettyTheApp closed 5 years ago
Found the issue, it seemed that python3 was not correctly installed in the virtual environment.
When i typed python3 in the virtual environment i got errors because python wasn't able to load libraries. I reinstalled Pyhton3 via yum and all worked as it should.
I have the amazon linux 2 image locally running on a VirtualBox machine. I have SLS Version 1.14.0 I have NodeJS version 11.14.0
When i start 'sls offline' it runs until it wait for connection. When I connect to the server it starts handling the python file but ends with
[offline] HANDLER RESOLVED Serverless: Failure: events.js:170 throw er; // Unhandled 'error' event ^
Error: write EPIPE at WriteWrap.onWriteComplete [as oncomplete] (internal/stream_base_commons.js:67:16) Emitted 'error' event at: at errorOrDestroy (internal/streams/destroy.js:107:12) at onwriteError (_stream_writable.js:436:5) at onwrite (_stream_writable.js:461:5) at _destroy (internal/streams/destroy.js:49:7) at Socket._destroy (net.js:621:3) at Socket.destroy (internal/streams/destroy.js:37:8) at WriteWrap.onWriteComplete [as oncomplete] (internal/stream_base_commons.js:68:12)
I expected either the output from python or a usable error message.
My serverless.yml looks like this: