theodi-attic/office-calendar

JSON::ParserError: 757: unexpected token at '<!DOCTYPE html> <html lang=en> <meta charset=utf-8> <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width"> <title>Error 502 (Server Error)!!1</title> <style> *{margin:0;

Closed this issue · 0 comments

Check full details on Airbrake: #70455560

Backtrace:

```
[GEM_ROOT]/gems/json-1.8.1/lib/json/common.rb:155:in parse
[GEM_ROOT]/gems/json-1.8.1/lib/json/common.rb:155:in parse
[PROJECT_ROOT]/lib/google_calendar.rb:59:in get_events
[PROJECT_ROOT]/app/models/resource.rb:9:in block in events
[GEM_ROOT]/gems/activesupport-3.2.16/lib/active_support/cache.rb:297:in block in fetch
[GEM_ROOT]/gems/activesupport-3.2.16/lib/active_support/cache.rb:520:in instrument
[GEM_ROOT]/gems/activesupport-3.2.16/lib/active_support/cache.rb:296:in fetch
[PROJECT_ROOT]/app/models/resource.rb:8:in events
[PROJECT_ROOT]/app/views/resource/index.json.jbuilder:3:in block in _app_views_resource_index_json_jbuilder__1277306172694758213_49634740
[GEM_ROOT]/gems/jbuilder-2.0.2/lib/jbuilder.rb:312:in block (2 levels) in _map_collection
[GEM_ROOT]/gems/jbuilder-2.0.2/lib/jbuilder.rb:319:in _scope
[GEM_ROOT]/gems/jbuilder-2.0.2/lib/jbuilder.rb:312:in block in _map_collection
[GEM_ROOT]/gems/activerecord-3.2.16/lib/active_record/relation/delegation.rb:6:in map
[GEM_ROOT]/gems/activerecord-3.2.16/lib/active_record/relation/delegation.rb:6:in map
[GEM_ROOT]/gems/jbuilder-2.0.2/lib/jbuilder.rb:311:in _map_collection
[GEM_ROOT]/gems/jbuilder-2.0.2/lib/jbuilder.rb:223:in array!
[GEM_ROOT]/gems/jbuilder-2.0.2/lib/jbuilder/jbuilder_template.rb:39:in array!
[GEM_ROOT]/gems/jbuilder-2.0.2/lib/jbuilder.rb:75:in block in set!
[GEM_ROOT]/gems/jbuilder-2.0.2/lib/jbuilder.rb:319:in _scope
[GEM_ROOT]/gems/jbuilder-2.0.2/lib/jbuilder.rb:75:in set!
[PROJECT_ROOT]/app/views/resource/index.json.jbuilder:1:in _app_views_resource_index_json_jbuilder__1277306172694758213_49634740
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_view/template.rb:145:in block in render
[GEM_ROOT]/gems/activesupport-3.2.16/lib/active_support/notifications.rb:125:in instrument
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_view/template.rb:143:in render
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_view/renderer/template_renderer.rb:47:in block (2 levels) in render_template
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_view/renderer/abstract_renderer.rb:38:in block in instrument
[GEM_ROOT]/gems/activesupport-3.2.16/lib/active_support/notifications.rb:123:in block in instrument
[GEM_ROOT]/gems/activesupport-3.2.16/lib/active_support/notifications/instrumenter.rb:20:in instrument
[GEM_ROOT]/gems/activesupport-3.2.16/lib/active_support/notifications.rb:123:in instrument
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_view/renderer/abstract_renderer.rb:38:in instrument
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_view/renderer/template_renderer.rb:46:in block in render_template
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_view/renderer/template_renderer.rb:54:in render_with_layout
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_view/renderer/template_renderer.rb:45:in render_template
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_view/renderer/template_renderer.rb:18:in render
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_view/renderer/renderer.rb:36:in render_template
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_view/renderer/renderer.rb:17:in render
[GEM_ROOT]/gems/actionpack-3.2.16/lib/abstract_controller/rendering.rb:110:in _render_template
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_controller/metal/streaming.rb:225:in _render_template
[GEM_ROOT]/gems/actionpack-3.2.16/lib/abstract_controller/rendering.rb:103:in render_to_body
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_controller/metal/renderers.rb:28:in render_to_body
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_controller/metal/compatibility.rb:50:in render_to_body
[GEM_ROOT]/gems/actionpack-3.2.16/lib/abstract_controller/rendering.rb:88:in render
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_controller/metal/rendering.rb:16:in render
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_controller/metal/instrumentation.rb:40:in block (2 levels) in render
[GEM_ROOT]/gems/activesupport-3.2.16/lib/active_support/core_ext/benchmark.rb:5:in block in ms
/home/calendar/.rvm/rubies/ruby-1.9.3-p374/lib/ruby/1.9.1/benchmark.rb:295:in realtime
[GEM_ROOT]/gems/activesupport-3.2.16/lib/active_support/core_ext/benchmark.rb:5:in ms
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_controller/metal/instrumentation.rb:40:in block in render
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_controller/metal/instrumentation.rb:83:in cleanup_view_runtime
[GEM_ROOT]/gems/activerecord-3.2.16/lib/active_record/railties/controller_runtime.rb:24:in cleanup_view_runtime
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_controller/metal/instrumentation.rb:39:in render
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_controller/metal/implicit_render.rb:10:in default_render
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_controller/metal/mime_responds.rb:196:in respond_to
[PROJECT_ROOT]/app/controllers/resource_controller.rb:7:in index
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_controller/metal/implicit_render.rb:4:in send_action
[GEM_ROOT]/gems/actionpack-3.2.16/lib/abstract_controller/base.rb:167:in process_action
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_controller/metal/rendering.rb:10:in process_action
[GEM_ROOT]/gems/actionpack-3.2.16/lib/abstract_controller/callbacks.rb:18:in block in process_action
[GEM_ROOT]/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:425:in _run__3494600005698236174__process_action__249450519309746057__callbacks
[GEM_ROOT]/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:405:in __run_callback
[GEM_ROOT]/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:385:in _run_process_action_callbacks
[GEM_ROOT]/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:81:in run_callbacks
[GEM_ROOT]/gems/actionpack-3.2.16/lib/abstract_controller/callbacks.rb:17:in process_action
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_controller/metal/rescue.rb:29:in process_action
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_controller/metal/instrumentation.rb:30:in block in process_action
[GEM_ROOT]/gems/activesupport-3.2.16/lib/active_support/notifications.rb:123:in block in instrument
[GEM_ROOT]/gems/activesupport-3.2.16/lib/active_support/notifications/instrumenter.rb:20:in instrument
[GEM_ROOT]/gems/activesupport-3.2.16/lib/active_support/notifications.rb:123:in instrument
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_controller/metal/instrumentation.rb:29:in process_action
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_controller/metal/params_wrapper.rb:207:in process_action
[GEM_ROOT]/gems/activerecord-3.2.16/lib/active_record/railties/controller_runtime.rb:18:in process_action
[GEM_ROOT]/gems/actionpack-3.2.16/lib/abstract_controller/base.rb:121:in process
[GEM_ROOT]/gems/actionpack-3.2.16/lib/abstract_controller/rendering.rb:45:in process
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_controller/metal.rb:203:in dispatch
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_controller/metal/rack_delegation.rb:14:in dispatch
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_controller/metal.rb:246:in block in action
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_dispatch/routing/route_set.rb:73:in call
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_dispatch/routing/route_set.rb:73:in dispatch
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_dispatch/routing/route_set.rb:36:in call
[GEM_ROOT]/gems/journey-1.0.4/lib/journey/router.rb:68:in block in call
[GEM_ROOT]/gems/journey-1.0.4/lib/journey/router.rb:56:in each
[GEM_ROOT]/gems/journey-1.0.4/lib/journey/router.rb:56:in call
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_dispatch/routing/route_set.rb:608:in call
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_dispatch/middleware/best_standards_support.rb:17:in call
[GEM_ROOT]/gems/rack-1.4.5/lib/rack/etag.rb:23:in call
[GEM_ROOT]/gems/rack-1.4.5/lib/rack/conditionalget.rb:25:in call
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_dispatch/middleware/head.rb:14:in call
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_dispatch/middleware/params_parser.rb:21:in call
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_dispatch/middleware/flash.rb:242:in call
[GEM_ROOT]/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:210:in context
[GEM_ROOT]/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:205:in call
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_dispatch/middleware/cookies.rb:341:in call
[GEM_ROOT]/gems/activerecord-3.2.16/lib/active_record/query_cache.rb:64:in call
[GEM_ROOT]/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in call
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_dispatch/middleware/callbacks.rb:28:in block in call
[GEM_ROOT]/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:405:in _run__4228227059067835798__call__2510724021267793377__callbacks
[GEM_ROOT]/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:405:in __run_callback
[GEM_ROOT]/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:385:in _run_call_callbacks
[GEM_ROOT]/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:81:in run_callbacks
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_dispatch/middleware/callbacks.rb:27:in call
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_dispatch/middleware/remote_ip.rb:31:in call
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_dispatch/middleware/debug_exceptions.rb:16:in call
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_dispatch/middleware/show_exceptions.rb:56:in call
[GEM_ROOT]/gems/railties-3.2.16/lib/rails/rack/logger.rb:32:in call_app
[GEM_ROOT]/gems/railties-3.2.16/lib/rails/rack/logger.rb:16:in block in call
[GEM_ROOT]/gems/activesupport-3.2.16/lib/active_support/tagged_logging.rb:22:in tagged
[GEM_ROOT]/gems/railties-3.2.16/lib/rails/rack/logger.rb:16:in call
[GEM_ROOT]/gems/actionpack-3.2.16/lib/action_dispatch/middleware/request_id.rb:22:in call
[GEM_ROOT]/gems/rack-1.4.5/lib/rack/methodoverride.rb:21:in call
[GEM_ROOT]/gems/rack-1.4.5/lib/rack/runtime.rb:17:in call
[GEM_ROOT]/gems/rack-1.4.5/lib/rack/lock.rb:15:in call
[GEM_ROOT]/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:in forward
[GEM_ROOT]/gems/rack-cache-1.2/lib/rack/cache/context.rb:245:in fetch
[GEM_ROOT]/gems/rack-cache-1.2/lib/rack/cache/context.rb:185:in lookup
[GEM_ROOT]/gems/rack-cache-1.2/lib/rack/cache/context.rb:66:in call!
[GEM_ROOT]/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:in call
[GEM_ROOT]/gems/railties-3.2.16/lib/rails/engine.rb:484:in call
[GEM_ROOT]/gems/railties-3.2.16/lib/rails/application.rb:231:in call
[GEM_ROOT]/gems/railties-3.2.16/lib/rails/railtie/configurable.rb:30:in method_missing
[GEM_ROOT]/gems/thin-1.6.1/lib/thin/connection.rb:82:in block in pre_process
[GEM_ROOT]/gems/thin-1.6.1/lib/thin/connection.rb:80:in catch
[GEM_ROOT]/gems/thin-1.6.1/lib/thin/connection.rb:80:in pre_process
[GEM_ROOT]/gems/thin-1.6.1/lib/thin/connection.rb:55:in process
[GEM_ROOT]/gems/thin-1.6.1/lib/thin/connection.rb:41:in receive_data
[GEM_ROOT]/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in run_machine
[GEM_ROOT]/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in run
[GEM_ROOT]/gems/thin-1.6.1/lib/thin/backends/base.rb:73:in start
[GEM_ROOT]/gems/thin-1.6.1/lib/thin/server.rb:162:in start
[GEM_ROOT]/gems/thin-1.6.1/lib/thin/controllers/controller.rb:87:in start
[GEM_ROOT]/gems/thin-1.6.1/lib/thin/runner.rb:200:in run_command
[GEM_ROOT]/gems/thin-1.6.1/lib/thin/runner.rb:156:in run!
[GEM_ROOT]/gems/thin-1.6.1/bin/thin:6:in <top (required)>
[GEM_ROOT]/bin/thin:23:in load
[GEM_ROOT]/bin/thin:23:in <main>
```