serverless-plugins
serverless-plugins copied to clipboard
serverless-offline-kinesis: serverless offline hangins and doesn't start local server
Hi there!
I'm using serverless-offline and serverless-offline-kinesis as documented. Serverless offline kinesis seems to be hanging upon starting up the local server.
The local port never comes up. The serverless repo works as expected without the offline-kinesis plugin.
Thanks for any pointers!
Env: Node: 14
package.json "serverless": "^2.38.0", "serverless-offline": "^6.9.0", "serverless-offline-kinesis": "^4.2.0",
serverless.yml file:
@tylerzey I'm having a similar issue, looks to be when the Kinesis stream has a -
in the name. Removing that works for me.
Same issue, but updating the name has no effect 🙁
same issue
Same issue here. Some debugging shows me that this method hangs, as the Kinesis streams are not created.
https://github.com/CoorpAcademy/serverless-plugins/blob/6a0e1729b739773a417a268eff23679fb123611d/packages/serverless-offline-kinesis/src/kinesis.js#L47
I saw a bunch other issues addressing and talking about this wait behaviour, but they were all closed.
@godu do you have any insights here.
@tylerzey I'm having a similar issue, looks to be when the Kinesis stream has a
-
in the name. Removing that works for me.
Removing -
works for me!
I am dealing with this issue at the moment. Changing the name did nothing. Has anyone found an actual solution by any chance?
@ChrisHumboldtEvari , @tnolet , @asamurai , @nicklloyd, @tylerzey
Hi all, today I was trying to use this plugin and found this "error". I was able to make it work.
Reviewing the code, I realized that they never really create a stream, so I think that it is supposed to be created beforehand.
What I did to make it work, was:
- Run a docker image of a kinesis server (e.g.,
vsouza/kinesis-local
,saidsef/aws-kinesis-local
,ruanbekker/kinesis-local:latest
or directly with a Dockerfile as in https://blog.ruanbekker.com/blog/2019/06/22/play-with-kinesis-data-streams-for-free/). - Create a stream (e.g.,
aws --endpoint-url http://localhost:4567 kinesis create-stream --stream-name polls
). - Run serverless offline as normal
Take a look to https://github.com/CoorpAcademy/serverless-plugins/tree/master/tests/serverless-plugins-integration We use docker to test the plugins.