You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am doing the same project as yours, I discovered a little bug in OmniApi script.
In the repository, it showed that you want to separate OmniApi and Redis apart. The script config.py is fundamentally had to be replaced.
However, in the script cacher.py, it separated remote and local redis server. The Api scripts that imported cacher.py always used the localhost redis client operations. Hence, if you want api scripts connect to the redis server in the docker network, you have to change the code line: l = rredis.StrictRedis() into l = redis.StrictRedis(host=config.REDIS_HOST, port=config.REDIS_PORT, db=config.REDIS_DB)
It should work fine
The text was updated successfully, but these errors were encountered:
Hello, I am doing the same project as yours, I discovered a little bug in OmniApi script.
In the repository, it showed that you want to separate OmniApi and Redis apart. The script
config.py
is fundamentally had to be replaced.However, in the script
cacher.py
, it separated remote and local redis server. The Api scripts that imported cacher.py always used the localhost redis client operations. Hence, if you want api scripts connect to the redis server in the docker network, you have to change the code line:l = rredis.StrictRedis()
intol = redis.StrictRedis(host=config.REDIS_HOST, port=config.REDIS_PORT, db=config.REDIS_DB)
It should work fine
The text was updated successfully, but these errors were encountered: