Skip to Content
Menu
This question has been flagged
3 Replies
5150 Views

Hello,

We've just bought the REST API for Odoo (https://apps.odoo.com/apps/modules/8.0/rest_api/) and followed the simple installation procedure. I begin testing with the default (and unsure) redis configuration. Redis works perfectly on its own (test ping with redis-cli),

When launching it inside Odoo (odoo.py -d MYDB -u rest_api) I get the following message:

2017-06-20 13:49:52,820 8110 ERROR comme_prod0523 openerp.addons.rest_api.controllers.redisdb: <REDIS> ERROR: Failed to connect to Redis-server!

Does anyone use rest_api? Did you get this problem and did you manage to correct it?

Thank you.

- Louis

Avatar
Discard
Best Answer

I get this:

http://127.0.0.1:6379/api/res.partner

=

-ERR wrong number of arguments for 'get' command


When I try to connect to my odoo I get this:

127.0.0.1:8069/api/res.partner = 404 Error


My config in systemparameters = 

redis_host = 127.0.0.1

redis_port = 6379

redis_db = 0

redis_password = None


my redis server is running:

redis-cli -h 127.0.0.1 ping = PONG


redis 3524 1 0 10:52 ? 00:00:01 /usr/bin/redis-server 127.0.0.1:6379

st 4727 2205 0 11:23 pts/4 00:00:00 grep --color=auto redis


any solution to this?



Avatar
Discard
Author Best Answer

The problem was with the python-redis package included in Ubuntu.

Do not use

     sudo apt-get install python-redis

but download and install https://pypi.python.org/pypi/redis

Avatar
Discard

I have the problem that it doesn't show nothing on localhost/api/product.template

I get no error, the redis server is running