question

RyanGoree-2073 avatar image
0 Votes"
RyanGoree-2073 asked MayankBargali-MSFT edited

MOVED error trying to connect to redis from function app with node.js

I'm trying to connect to redis from a function app using node.js with the example snippet in the quickstart:

var client = redis.createClient(6380, process.env.REDISCACHEHOSTNAME,
    {auth_pass: process.env.REDISCACHEKEY, tls: {servername: process.env.REDISCACHEHOSTNAME}});


But am getting an error with the message: MOVED 15850 10.151.1.36:15002.

What does this error mean and how I can I resolve it?


azure-functionsazure-cache-redis
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MayankBargali-MSFT avatar image
0 Votes"
MayankBargali-MSFT answered MayankBargali-MSFT edited

Hi @RyanGoree-2073

Welcome to Microsoft Q&A! Thanks for posting the question.

Can you confirm if you are observing this error intermittently? Are you connecting to azure Redis cache or Redis cache on VM? What happens when you connect your Redis server using any of the Redis clients. Have you observed the same issue?

I have tested the scenario at my end and couldn't observe the same issue. Please confirm if you have specified the REDISCACHEKEY and REDISCACHEHOSTNAME as environment variables i.e. in your application setting on portal or local.setting.json if you are executing it on your local machine.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.