Server can't connect to Redis

I created a Redis service, and separately created a blueprint where I host a node server with next.js.

I added the redis connection url to the server and when I build & deploy it gets stuck trying to connect to Redis. Giving mme the following error over and over:

Oct 21 10:26:27 PM Error: getaddrinfo ENOTFOUND red-cd9ell9gp3jur15n0jjg
Oct 21 10:26:27 PM at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26) {
Oct 21 10:26:27 PM errno: -3008,
Oct 21 10:26:27 PM code: ‘ENOTFOUND’,
Oct 21 10:26:27 PM syscall: ‘getaddrinfo’,
Oct 21 10:26:27 PM hostname: ‘red-cd9ell9gp3jur15n0jjg’
Oct 21 10:26:27 PM }

What am I doing wrong?

Hi there,

It looks like your service and Redis instance are deployed in different regions. They would need to be in the same region in order to connect via the internal connection string. Currently, you cannot change the region after creating a resource, so you will need to delete it and recreate it on the correct region.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.