njyx / sentiment-grape-demo Goto Github PK
View Code? Open in Web Editor NEWTemporary Test Repo for Grape Based API
Temporary Test Repo for Grape Based API
Hi,
I have followed exact same steps as described in the Configuration (Generic) section. Link: https://github.com/njyx/sentiment-grape-demo
When I try to start the API using command "exec rackup" I am getting below error
$ exec rackup
/home/3scale/heroku/sentiment-api-example/version_1/app/sentimentapi_v1.1.rb:8:in <class:SentimentApiV1_1>': undefined method
error_format' for SentimentApiV1_1:Class (NoMethodError)
from /home/3scale/heroku/sentiment-api-example/version_1/app/sentimentapi_v1.1.rb:6:in <top (required)>' from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in
require'
from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in require' from /home/3scale/heroku/sentiment-api-example/version_1/config.ru:4:in
block in
instance_eval' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/rack-1.5.2/lib/rack/builder.rb:55:in
initialize'new' from /home/3scale/heroku/sentiment-api-example/version_1/config.ru:in
'eval' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/rack-1.5.2/lib/rack/builder.rb:49:in
new_from_string'parse_file' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/rack-1.5.2/lib/rack/server.rb:277:in
build_app_and_options_from_config'app' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/rack-1.5.2/lib/rack/server.rb:314:in
wrapped_app'start' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/rack-1.5.2/lib/rack/server.rb:141:in
start'<top (required)>' from /usr/local/rvm/gems/ruby-1.9.3-p392/bin/rackup:23:in
load'<main>' from /usr/local/rvm/gems/ruby-1.9.3-p392/bin/ruby_noexec_wrapper:14:in
eval'Ruby version:
root# ruby -v
Am I doing something wrong?
Your help would be appreciated.
Best Regards,
Vinay Bhalerao
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.