question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

5.bindings connect to redis

See original GitHub issue

Expected Behavior

node app connect kafka and do not connect redis

Actual Behavior

just connect to redis and get error: == DAPR == 2019/10/26 16:28:36 redis: connection to localhost:6379 failed: redispipe.connection.could_not_connect: {address: localhost:6379}, cause: dial tcp [::1]:6379: connect: connection refused

Steps to Reproduce the Problem

Follow document execution https://github.com/dapr/samples/tree/master/5.bindings

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
liangyuanpengcommented, Oct 31, 2019

I jus delete flush=True and it’s working !

0reactions
liangyuanpengcommented, Oct 31, 2019

@abhirockzz Thank you,I solved this problem now.

But,new problem.

Some wrong happen when i run dapr run --app-id bindings-pythonapp python app.py

== DAPR == time="2019-10-31T00:16:02-04:00" level=info msg="starting Dapr Runtime -- version 0.1.0 -- commit 4358565-dirty"
== DAPR == time="2019-10-31T00:16:02-04:00" level=info msg="log level set to: info"
== APP ==   File "app.py", line 17
== APP ==     print(payload, flush=True)
== APP ==                         ^
== APP == SyntaxError: invalid syntax
== DAPR == time="2019-10-31T00:16:02-04:00" level=info msg="standalone mode configured"
== DAPR == time="2019-10-31T00:16:02-04:00" level=info msg="dapr id: bindings-pythonapp"

my python version: Python 2.7.5 (default, Oct 30 2018, 23:45:53)

It would be great if I could solve this problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Connect to Redis and Use The Redis Database - Linode
To connect to your Redis server remotely, you first need to open the appropriate port in your firewall and bind Redis to an...
Read more >
Redis binding spec
To setup Redis binding create a component of type bindings.redis . See this guide on how to create and apply a binding configuration....
Read more >
What does the bind parameter do in Redis?
It binds the redis instance to specific interface (and hence specific ip address). Basically your redis server will only listen to connections ......
Read more >
Get started with Redis
How to get up and running with Redis. This is a guide to getting started with Redis. You'll learn how to install, run,...
Read more >
redis: bindings for Redis
This package provides up-to-date bindings to the Redis database that are idiomatic and fast. Every exposed function has a contract (some are even...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found