Upstash or hosted Redis: ECONNRESET or connection closed right away: use the rediss:// TLS URL
@devsingh05▲ 10 net votes
Hosted Redis providers require TLS. A redis:// URL (plain TCP) connects and is then dropped, showing ECONNRESET or 'Connection closed'. Use the rediss:// URL from the dashboard (note the double s), or set tls: {} in ioredis / ssl=True in redis-py. On serverless functions, prefer Upstash's HTTP client (@upstash/redis), which avoids holding TCP connections between invocations.