ioredis

ioredis Unhandled error event: Error: connect ETIMEDOUT

穿精又带淫゛_ 提交于 2021-02-07 18:13:27
问题 Has anyone encountered below error while connecting to standalone redis server using node js ioredis package? Below is the error stack trace: 2018-08-16T10:52:18.351869060Z [ioredis] Unhandled error event: Error: connect ETIMEDOUT 2018-08-16T10:52:07.449457296Z at Timer.listOnTimeout (timers.js:207:5) 2018-08-16T10:52:07.449448499Z at tryOnTimeout (timers.js:237:5) 2018-08-16T10:52:07.449439722Z at ontimeout (timers.js:365:14) 2018-08-16T10:52:07.449430834Z at Socket._onTimeout (net.js:339:8)

【攻略】如何在云开发中使用 Redis?

我的梦境 提交于 2020-03-03 15:44:26
默认情况下,云开发的函数部署在 公共网络 中,只可以访问公网。如果开发者需要访问腾讯云的 Redis、TencentDB、CVM、Kafka 等资源,需要建立 私有网络 来确保 数据安全及连接安全 。 本文会演示如何在云开发的函数中使用 Redis,如需访问其他数据库资源,也可以参考本文的思路。 Redis 介绍及应用场景 Redis 是一个开源的 In-Memory 的 NoSQL 数据库,可以用作 数据库、缓存和消息中间件 。 支持 多种类型 的数据结构,如**字符串(strings)、散列(hashes)、列表(lists)和集合(sets)**等 常见的应用场景有: 会话缓存 : Redis 不仅在内存中存储,读写速度较快,还提供了 持久化方案 来提供一致性 页面缓存 :可以作为 PHP 或者是 Node.js 服务端渲染 结果的缓存 消息队列 : Redis 支持列表且支持 Pub/Sub ,可以作为消息队列来使用 排行榜/计数 :Redis 在内存中,因此它在 递增和递减 方面做得非常出色,另外,Redis 也支持 集合和排序集合 数据结构,比较适合排行榜的场景 私有网络介绍 私有网络(Virtual Private Cloud,VPC) 是基于腾讯云构建的专属云上网络空间,为您在腾讯云上的资源提供网络服务,不同私有网络间完全 逻辑隔离 。您可以自定义 网络环境、路由表

Google Cloud Functions & Redis: ECONNRESET

泪湿孤枕 提交于 2019-12-24 18:55:38
问题 Does anyone know why I continually get this error from cloud functions (google cloud functions) when using ioredis module? [ioredis] Unhandled error event: Error: read ECONNRESET at _errnoException (util.js:1022:11) at TLSWrap.onread (net.js:628:25) error log sample The error never stops. It doesn't affect normal operation (meaning, I can perform all desired operaitons just fine with ioredis module & my redis). Its incredibly obnoxious and makes it impossible to debug cloud function

can't connect to redis through node app, both in dockers

こ雲淡風輕ζ 提交于 2019-12-24 01:15:09
问题 I'm trying to connect my app to redis, but i get: [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379 when i do: docker exec -it ed02b7e19810 ping test_redis_1 i've received all packets. also the redis container declares: * Running mode=standalone, port=6379 * Ready to accept connections ( i get the WARNINGS but i don't think its related: Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf