-2

I wanted to implement the recommender system from https://github.com/groveco/content-engine (Look at web.py in that github, I've followed Readme steps)

But the Redis server has some problem and throws up JSON parse error. I've added the screenshots below

Redis server is set up

JSON parse error

Community
  • 1
  • 1

1 Answers1

0

Your curl request has the problem. It has a quotation issue: try using: '{"data-url": "sample-data.csv"}'

curl -X GET -H "X-API-TOKEN: FOOBAR1" -H "Content-Type: application/json; charset=utf-8" http://127.0.0.1:5000/train -d '{"data-url": "sample-data.csv"}'

mind the single quote ' vs double quote "

MD Ruhul Amin
  • 4,386
  • 1
  • 22
  • 37