Can't connect with redis during building self hosted server by moralis and mongodb

Code

# See src/config.ts for details on the .env variables that you can set

# Your Moralis Api key, that can be found in the dashboard. Keep this secret!
MORALIS_API_KEY=********************************
PORT = 1337;
MASTER_KEY = ***
APPLICATION_ID = ***
SERVER_URL = 'http://localhost:1337/server'
CLOUD_PATH = './build/cloud/main.js'
DATABASE_URI = 'mongodb+srv://******:*******@cluster0.qlypopk.mongodb.net/parse?retryWrites=true&w=majority'

REDIS_CONNECTION_STRING = 'redis://******:******@redis-17922.c91.us-east-1-3.ec2.cloud.redislabs.com:17922'
RATE_LIMIT_TTL = 30
RATE_LIMIT_AUTHENTICATED = 50
RATE_LIMIT_ANONYMOUS = 20

USE_STREAMS = true
STREAMS_WEBHOOK_URL = '/streams-webhook'

Error

Error: connect ECONNREFUSED 127.0.0.1:6379
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1300:16)
Emitted 'error' event on RedisClient instance at:
    at RedisClient.on_error (C:\Users\Faizan's PC\OneDrive\Desktop\migration-demo-parse-server-1\node_modules\parse-server\node_modules\redis\index.js:342:14)
    at Socket.<anonymous> (C:\Users\Faizan's PC\OneDrive\Desktop\migration-demo-parse-server-1\node_modules\parse-server\node_modules\redis\index.js:223:14)
    at Socket.emit (node:events:513:28)
    at Socket.emit (node:domain:489:12)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -4078,
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '127.0.0.1',
  port: 6379
}

it looks like the redis server is not started and it looks like it is running on localhost based on this error,

but in this string it looks like it should connect to a different redis server on a different IP/url

try to check the username and password do not include special characters

Already check to face the same issue.
I saw a post of the boy I think his name was martin or some thing like this. He was discussing the same issue qith you and he successfully solved the issue.

check the password for redis connection to not have special characters

successfully solved previous error now need to solve this one

it looks like the same error to me, it can not connect to redis and it tries to connect to a redis on localhost (127.0.0.1)

What shoud I do next or how to solve it?

I don’t know what happens, it looks like it is ignoring this line and it tries to connect to localhost for redis

what command did you run when you got that error?

First yarn build then yarn dev

if you put a random IP and port for that REDIS_CONNECTION_STRING variable then you get an error with that random IP and port or same error with local host?