SeldonIO / seldon-server

Machine Learning Platform and Recommendation Engine built on Kubernetes
https://www.seldon.io/
Apache License 2.0
1.47k stars 300 forks source link

REST API - actions #32

Closed michaltrmac closed 7 years ago

michaltrmac commented 7 years ago

Hi,

i'm playing with Seldon and I have problem with actions REST API.

I send this testing request to seldon server curl -X POST -H "Content-Type: application/json" -d '{"user": "user1", "item": "item1"}' "http://seldon-server/actions?oauth_token=5rf6f5r5adsjhlsma08u2rbs97"

Everything goes well if I send it for first time and I've got response like this {"actionId":null,"user":"user1","item":"item1","type":0,"date":null,"value":null,"times":null,"comment":null,"tags":null,"recTag":null,"referrer":null,"extraData":null}

But when I send same curl request again I've got this error: {"error_id":26,"error_msg":"The supplied fields are incorrect or incompatible with your current integration. Please contact Rummble Labs support.","http_response":400}

Am I doing something wrong or it's possible to have only one unique action for user - item combination? I think that user can have multiple actions of same type for one item - for example multiple page views of one article but in different time.

mt.

michaltrmac commented 7 years ago

problem resolved, I forgot to set up rec_alg

mt.