serverless-plugins icon indicating copy to clipboard operation
serverless-plugins copied to clipboard

serverless-offline-kinesis: serverless offline hangins and doesn't start local server

Open tylerzey opened this issue 3 years ago • 7 comments

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: Screen Shot 2021-04-27 at 9 12 13 PM

tylerzey avatar Apr 28 '21 01:04 tylerzey

@tylerzey I'm having a similar issue, looks to be when the Kinesis stream has a - in the name. Removing that works for me.

julian-huff avatar Apr 30 '21 18:04 julian-huff

Same issue, but updating the name has no effect 🙁

nicklloyd avatar May 12 '21 07:05 nicklloyd

same issue

asamurai avatar May 14 '21 12:05 asamurai

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.

tnolet avatar Jun 10 '21 17:06 tnolet

@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!

quixote15 avatar Dec 08 '21 20:12 quixote15

I am dealing with this issue at the moment. Changing the name did nothing. Has anyone found an actual solution by any chance?

ChrisHumboldtEvari avatar Jun 25 '22 11:06 ChrisHumboldtEvari

@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:

  1. 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/).
  2. Create a stream (e.g., aws --endpoint-url http://localhost:4567 kinesis create-stream --stream-name polls).
  3. Run serverless offline as normal

jagomsim avatar Aug 24 '22 17:08 jagomsim

Take a look to https://github.com/CoorpAcademy/serverless-plugins/tree/master/tests/serverless-plugins-integration We use docker to test the plugins.

godu avatar Oct 27 '22 09:10 godu