Skip to content

Instantly share code, notes, and snippets.

@mghaught
Created December 17, 2010 04:47
Show Gist options
  • Save mghaught/744501 to your computer and use it in GitHub Desktop.
Save mghaught/744501 to your computer and use it in GitHub Desktop.
Heroku env json error
Error Message:
JSON::ParserError: A JSON text must at least contain two octets!
Where:
[GEM_ROOT]/gems/json-1.4.6/lib/json/common.rb, line 146
Backtrace Summary:
[GEM_ROOT]/gems/json-1.4.6/lib/json/common.rb:146:in `initialize'
[GEM_ROOT]/gems/json-1.4.6/lib/json/common.rb:146:in `new'
[GEM_ROOT]/gems/json-1.4.6/lib/json/common.rb:146:in `parse'
[GEM_ROOT]/gems/json-1.4.6/lib/json/common.rb:14:in `[]'
[GEM_ROOT]/gems/nimble_nodes-0.9.0/lib/nimble_nodes/settings.rb:29:in `fetch_from_server'
[GEM_ROOT]/gems/nimble_nodes-0.9.0/lib/nimble_nodes/settings.rb:20:in `cache'
[GEM_ROOT]/gems/nimble_nodes-0.9.0/lib/nimble_nodes/settings.rb:9:in `[]'
[GEM_ROOT]/gems/nimble_nodes-0.9.0/lib/nimble_nodes.rb:17:in `paused?'
[GEM_ROOT]/gems/nimble_nodes-0.9.0/lib/nimble_nodes.rb:13:in `active?'
[GEM_ROOT]/gems/nimble_nodes-0.9.0/lib/nimble_nodes/dynos.rb:51:in `monitor?'
[GEM_ROOT]/gems/nimble_nodes-0.9.0/lib/nimble_nodes/middleware.rb:9:in `call'
[GEM_ROOT]/gems/actionpack-2.3.5/lib/action_controller/string_coercion.rb:25:in `call'
[GEM_ROOT]/gems/actionpack-2.3.5/lib/action_controller/params_parser.rb:15:in `call'
[GEM_ROOT]/gems/actionpack-2.3.5/lib/action_controller/session/cookie_store.rb:93:in `call'
[GEM_ROOT]/gems/actionpack-2.3.5/lib/action_controller/failsafe.rb:26:in `call'
[GEM_ROOT]/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:106:in `call'
/home/heroku_rack/lib/static_assets.rb:9:in `call'
/home/heroku_rack/lib/last_access.rb:15:in `call'
/home/heroku_rack/lib/date_header.rb:14:in `call'
[GEM_ROOT]/gems/thin-1.2.6/lib/thin/connection.rb:76:in `pre_process'
[GEM_ROOT]/gems/thin-1.2.6/lib/thin/connection.rb:74:in `catch'
[GEM_ROOT]/gems/thin-1.2.6/lib/thin/connection.rb:74:in `pre_process'
[GEM_ROOT]/gems/thin-1.2.6/lib/thin/connection.rb:57:in `process'
[GEM_ROOT]/gems/thin-1.2.6/lib/thin/connection.rb:42:in `receive_data'
[GEM_ROOT]/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
[GEM_ROOT]/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
[GEM_ROOT]/gems/thin-1.2.6/lib/thin/backends/base.rb:57:in `start'
[GEM_ROOT]/gems/thin-1.2.6/lib/thin/server.rb:156:in `start'
[GEM_ROOT]/gems/thin-1.2.6/lib/thin/controllers/controller.rb:80:in `start'
[GEM_ROOT]/gems/thin-1.2.6/lib/thin/runner.rb:177:in `send'
[GEM_ROOT]/gems/thin-1.2.6/lib/thin/runner.rb:177:in `run_command'
[GEM_ROOT]/gems/thin-1.2.6/lib/thin/runner.rb:143:in `run!'
[GEM_ROOT]/gems/thin-1.2.6/bin/thin:6
/usr/ruby1.8.7/bin/thin:19:in `load'
/usr/ruby1.8.7/bin/thin:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment