I have a stumbled block with the following errors on Ubuntu Server 16.04 with Ruby and MRuby installed, what is the cryptic error that is missing?
Hiredis is installed and compiled with H2O (latest 2.3), the error is still persist, I have no experience in Ruby and google for solutions didn't help.
Updated: I have replaced with simple code to simplify the problem.
$ ruby app/json_api.rb
$ mruby app/json_api.rb
Source code:
class JsonApi
def initialize
@storage = Hiredis.new
@storage['foo'] = 'bar'
end
def call(env)
body = JSON.generate({foo: @storage['foo']})
[
200,
{'Content-Type' => 'application/json',
'Content-Length' => body.size},
[body]
]
end
end
JsonApi.new