Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379 #171

Open
nobleson opened this issue Mar 25, 2019 · 1 comment
Labels

Comments

@nobleson
Copy link

**I am running Windows 7 64bit mode, with Node version 8.12.0 installed.
I have followed the Get Started with TreeGateway API.
After installing with: npm install -g tree-gateway
I Run it though the tree-gateway.yaml file is generated, I got an endless stack overflow error thus:
rootPath: . database: redis: standalone: host: localhost port: 6379

C:\Users\Luke>cd C:\Users\Luke\Documents\VSCode Projects\cilmis-gateway

C:\Users\Luke\Documents\VSCode Projects\cilmis-gateway>treeGateway
No server configuration file was found. Creating a configuration file and saving it on 'C:\Users\Luke\Documents\VSCode Projects\cilmis-gateway\tree-gateway.yaml'
? Choose the redis topology: Standalone
? Redis host: localhost
? Redis port: 6379
? Redis DB number (Optional):
? Redis Password (Optional): [hidden]
[ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14)
[ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14)
[ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14)
[ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14)
[ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14)

I created a test.yaml

name: Test version: 1.0.0 path: "/test" proxy: target: host: http://httpbin.org timeout: five seconds

I Run but I still got this unhandled event error.:

C:\Users\Luke\Documents\VSCode Projects\cilmis-gateway>treeGatewayConfig apis --add ./my-api.yaml
[ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14)
[ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14)
[ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14)
[ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14)**

@thiagobustamante
Copy link
Collaborator

TreeGateway needs a redis instance to store its configurations.

The easiest way is to start redis through docker, as:

$ docker run -p 6379:6379 -d --name redis redis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants