Closed caxelrud closed 10 years ago
Sorry my last post where not clear. I still can't connect. I used the sample code, as follow, and I getting the following error. Thanks, Celso
import "package:redis_client/redis_client.dart"; main() { var connectionString = "localhost:6379";
RedisClient.connect(connectionString) .then( (RedisClient client) { client.set("test", "value") .then((_) => client.get("test")) .then((value) => print("success: $value")); } ); } (exit code:255) Uncaught Error: RedisClientException: Socket error SocketException: Connection failed (OS Error: No connection could be made because the target machine actively refused it.
, errno = 10061), address = localhost, port = 6379. Stack Trace:
Unhandled exception: RedisClientException: Socket error SocketException: Connection failed (OS Error: No connection could be made because the target machine actively refused it.
, errno = 10061), address = localhost, port = 6379.
Now it is working using connectionString = "127.0.0.1:6379"
Sorry my last post where not clear. I still can't connect. I used the sample code, as follow, and I getting the following error. Thanks, Celso
import "package:redis_client/redis_client.dart"; main() { var connectionString = "localhost:6379";
RedisClient.connect(connectionString) .then( (RedisClient client) { client.set("test", "value") .then((_) => client.get("test")) .then((value) => print("success: $value")); } ); } (exit code:255) Uncaught Error: RedisClientException: Socket error SocketException: Connection failed (OS Error: No connection could be made because the target machine actively refused it.
, errno = 10061), address = localhost, port = 6379. Stack Trace:
0 _onSocketError (package:redis_client/redis_client/redis_connection.dart:267:5)
1 _invokeErrorHandler (dart:async/async_error.dart:12)
2 _Future._propagateToListeners. (dart:async/future_impl.dart:469)
3 _rootRun (dart:async/zone.dart:683)
4 _RootZone.run (dart:async/zone.dart:823)
5 _Future._propagateToListeners (dart:async/future_impl.dart:445)
6 _Future._complete (dart:async/future_impl.dart:303)
7 _Future._asyncComplete. (dart:async/future_impl.dart:354)
8 _asyncRunCallback (dart:async/schedule_microtask.dart:18)
9 _createTimer. (dart:async-patch/timer_patch.dart:11)
10 _Timer._createTimerHandler._handleTimeout (timer_impl.dart:151)
11 _Timer._createTimerHandler. (timer_impl.dart:166)
12 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:93)
Unhandled exception: RedisClientException: Socket error SocketException: Connection failed (OS Error: No connection could be made because the target machine actively refused it.
, errno = 10061), address = localhost, port = 6379.
0 _rootHandleUncaughtError.. (dart:async/zone.dart:677)
1 _asyncRunCallback (dart:async/schedule_microtask.dart:18)
2 _asyncRunCallback (dart:async/schedule_microtask.dart:21)
3 _createTimer. (dart:async-patch/timer_patch.dart:11)
4 _Timer._createTimerHandler._handleTimeout (timer_impl.dart:151)
5 _Timer._createTimerHandler._handleTimeout (timer_impl.dart:159)
6 _Timer._createTimerHandler._handleTimeout (timer_impl.dart:159)
7 _Timer._createTimerHandler. (timer_impl.dart:166)
8 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:93)