Hi, @ramaboo I use the Demo-MovieLens-Rails, After train and deploy the model, I use the command:
rake assets:precompile
bundle exec puma -p 83 -e production
when i enter the page and click one of the movie, it get a ArgumentError:
Started GET "/movies/1563" for 172.16.88.212 at 2016-06-07 16:12:45 +0800
Processing by MoviesController#show as HTML
Parameters: {"id"=>"1563"}
Movie Load (0.4ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = $1 LIMIT 1 [["id", 1563]]
Completed 500 Internal Server Error in 2ms
ArgumentError (bad argument (expected URI object or URI string)):
app/controllers/movies_controller.rb:10:in `new'
app/controllers/movies_controller.rb:10:in `show'
I check my the PIO_ENGINE_URL client = PredictionIO::EngineClient.new(ENV['PIO_ENGINE_URL']) ,but can't get the reason, would you help me to correct it ? Thanks
Hi @ramaboo I found the reason: After I change some config, I forget to export the variables in .env
But, there is another problem: why the movies' image on my page didn't present.
Hi, @ramaboo I use the Demo-MovieLens-Rails, After train and deploy the model, I use the command:
when i enter the page and click one of the movie, it get a ArgumentError:
I check my the PIO_ENGINE_URL
client = PredictionIO::EngineClient.new(ENV['PIO_ENGINE_URL'])
,but can't get the reason, would you help me to correct it ? Thanks