CoorpAcademy / serverless-plugins

Collection of serverless plugins :zap:
229 stars 131 forks source link

ECONNREFUSED 0.0.0.0:9324 #9

Closed pkout closed 5 years ago

pkout commented 6 years ago

Hi,

I get this error when running serverless offline with this plugin turned on:

(node:54160) UnhandledPromiseRejectionWarning: Error: connect ECONNREFUSED 0.0.0.0:9324
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1113:14)
(node:54160) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)

Any idea why this is happening? Thanks!

Maxwell2022 commented 6 years ago

are you running it in Docker? can you share your docker-compose and serverless.yml?

pkout commented 6 years ago

I am not using Docker for this. Should I create a demo project, zip it up and post it here?

Maxwell2022 commented 5 years ago

how do you run elasticMQ then? https://github.com/godu/serverless/tree/master/packages/serverless-offline-sqs#sqs

pkout commented 5 years ago

Ah, I don't. This is the problem. I thought that the plugin starts its own queue, but it uses ElasticQueue instead. I'll have to set that up. Thank you and sorry about this! Hopefully it will help someone in the future.

Maxwell2022 commented 5 years ago

@pkout If you don't want to spend hours setting it up, just install docker and use the docker compose in the example: https://github.com/godu/serverless/tree/master/packages/serverless-offline-sqs/example

pkout commented 5 years ago

Will do. Thanks for the tip!