Chef-client unable to send reports to foreman

We have configured chef-client but it is unable to send reports to the
foreman server :

··· =================================================== [root@vboxcentos7 ~]# chef-client Starting Chef Client, version 12.12.15 resolving cookbooks for run list: [] Synchronizing Cookbooks: Installing Cookbook Gems: Compiling Cookbooks... [2016-07-31T15:36:42+00:00] WARN: Node vboxcentos7 has an empty run list. Converging 0 resources

Running handlers:

  • ChefHandlerForeman::ForemanFacts
    Running handlers complete

Deprecated features used!
"method access to node attributes (node.foo.bar) is deprecated and will
be removed in Chef 13, please use bracket syntax (node[“foo”][“bar”]) at 2
locations:
-
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef_handler_foreman-0.1.1/lib/chef_handler_foreman/foreman_facts.rb:40:in
prepare_facts' - /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef_handler_foreman-0.1.1/lib/chef_handler_foreman/foreman_facts.rb:41:inprepare_facts’

Chef Client finished, 0/0 resources updated in 19 seconds
[root@vboxcentos7 ~]#

[root@vboxcentos7 ~]# cat /etc/chef/client.rb |sed '/^#/d’
require 'chef_handler_foreman’
log_level :auto
log_location STDOUT
chef_server_url “https://chef-aws.example.com/organizations/example
#Chef Server
node_name "vboxcentos7"
client_key “/etc/chef/client.pem”

foreman_server_options :url => ‘https://foreman-aws.example.com:8443
#Foreman Smart Proxy
foreman_facts_upload true
foreman_reports_upload true
reports_log_level “notice”

Here are the logs that can be seen at foreman-proxy :
#################################
E, [2016-07-31T15:36:51.269372 #14039] ERROR – : undefined method join' for #<String:0x007f0a64957ed0> (NoMethodError) /usr/share/gems/gems/sinatra-1.3.5/lib/sinatra/showexceptions.rb:37:inrescue in call’
/usr/share/gems/gems/sinatra-1.3.5/lib/sinatra/showexceptions.rb:21:in
call' /usr/share/gems/gems/sinatra-1.3.5/lib/sinatra/base.rb:124:incall’
/usr/share/gems/gems/sinatra-1.3.5/lib/sinatra/base.rb:1417:in block in call' /usr/share/gems/gems/sinatra-1.3.5/lib/sinatra/base.rb:1499:insynchronize’
/usr/share/gems/gems/sinatra-1.3.5/lib/sinatra/base.rb:1417:in call' /usr/share/gems/gems/rack-1.6.4/lib/rack/urlmap.rb:66:inblock in call’
/usr/share/gems/gems/rack-1.6.4/lib/rack/urlmap.rb:50:in each' /usr/share/gems/gems/rack-1.6.4/lib/rack/urlmap.rb:50:incall’
/usr/share/gems/gems/rack-1.6.4/lib/rack/builder.rb:153:in call' /usr/share/gems/gems/rack-1.6.4/lib/rack/handler/webrick.rb:88:inservice’
/usr/share/ruby/webrick/httpserver.rb:138:in service' /usr/share/ruby/webrick/httpserver.rb:94:inrun’
/usr/share/ruby/webrick/server.rb:295:in block in start_thread' E, [2016-07-31T15:36:54.562172 #14039] ERROR -- : undefined methodjoin’
for #String:0x000000028e7388 (NoMethodError)
/usr/share/gems/gems/sinatra-1.3.5/lib/sinatra/showexceptions.rb:37:in
rescue in call' /usr/share/gems/gems/sinatra-1.3.5/lib/sinatra/showexceptions.rb:21:incall’
/usr/share/gems/gems/sinatra-1.3.5/lib/sinatra/base.rb:124:in call' /usr/share/gems/gems/sinatra-1.3.5/lib/sinatra/base.rb:1417:inblock in
call’
/usr/share/gems/gems/sinatra-1.3.5/lib/sinatra/base.rb:1499:in synchronize' /usr/share/gems/gems/sinatra-1.3.5/lib/sinatra/base.rb:1417:incall’
/usr/share/gems/gems/rack-1.6.4/lib/rack/urlmap.rb:66:in block in call' /usr/share/gems/gems/rack-1.6.4/lib/rack/urlmap.rb:50:ineach’
/usr/share/gems/gems/rack-1.6.4/lib/rack/urlmap.rb:50:in call' /usr/share/gems/gems/rack-1.6.4/lib/rack/builder.rb:153:incall’
/usr/share/gems/gems/rack-1.6.4/lib/rack/handler/webrick.rb:88:in service' /usr/share/ruby/webrick/httpserver.rb:138:inservice’
/usr/share/ruby/webrick/httpserver.rb:94:in run' /usr/share/ruby/webrick/server.rb:295:inblock in start_thread’
###################################