Issue connecting to Azure REDIS

We are trying to connect to Azure REDIS. The logs initially shows as connected but we keep seeing the following error for every second on the API after it is up. Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } REDIS CONNECTED We did set the REDIS_TLS to the following {"servername": "redis_host_name"}. Is there anything that we are missing in the configuration?
8 Replies
--
--2y ago
Hi! Have you set up also REDIS_HOST and REDIS_PORT env variables? REDIS_TLS is to configure the secure connection to Redis options
ujwal1373
ujwal1373OP2y ago
Hi. Yes I did configure REDIS_HOST and REDIS_PORT variables. Are there any other variables that I need to set?
--
--2y ago
Not for Redis. Under my experience you can set even wrong hostnames inside ioredis (our Redis client downstream) and say it connected. I would suggest to debug if there is connectivity to the Azure Redis instance from where the API app is being deployed and review the hostname and port in the configuration.
ujwal1373
ujwal1373OP2y ago
We wrote a sample nodejs app to connect to the REDIS using ioredis and it worked fine. We were able to set and get keys.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
--
--2y ago
Please open a new support thread as this is a different question compared to the original poster in this thread and could lead to bad support.
Thank you. 🙏 Are you enabling Azure Redis in the SSL port or in the non-SSL?
ujwal1373
ujwal1373OP2y ago
I tried both
--
--2y ago
I can't think of what could be happening to your settings. I would try to run a local Redis instance where the API instance is deployed and connect it to see if it is a network problem between API and Azure Redis. But beyond that I can't come up with more ideas, I am sorry.
Want results from more Discord servers?
Add your server