jejacks0n / apitome

Apitome: /iˈpitəmē/ An API documentation presentation layer for RSpec API Documentation output.
250 stars 126 forks source link

JSON::ParserError in Apitome::Docs#index #114

Open KiranJosh opened 4 years ago

KiranJosh commented 4 years ago

Started GET "/api/docs" for ::1 at 2020-01-29 19:34:08 +0530 Processing by Apitome::DocsController#index as HTML Rendering /home/kiran/.rvm/gems/ruby-2.6.0/gems/apitome-0.3.0/app/views/apitome/docs/index.html.erb within layouts/apitome/application Rendered /home/kiran/.rvm/gems/ruby-2.6.0/gems/apitome-0.3.0/app/views/apitome/docs/_explanation.html.erb (Duration: 1.6ms | Allocations: 6077) Rendered /home/kiran/.rvm/gems/ruby-2.6.0/gems/apitome-0.3.0/app/views/apitome/docs/_endpoint.html.erb (Duration: 0.1ms | Allocations: 77) Rendered /home/kiran/.rvm/gems/ruby-2.6.0/gems/apitome-0.3.0/app/views/apitome/docs/_params.html.erb (Duration: 0.3ms | Allocations: 291) Rendered /home/kiran/.rvm/gems/ruby-2.6.0/gems/apitome-0.3.0/app/views/apitome/docs/_route.html.erb (Duration: 0.1ms | Allocations: 77) Rendered /home/kiran/.rvm/gems/ruby-2.6.0/gems/apitome-0.3.0/app/views/apitome/docs/_headers.html.erb (Duration: 0.1ms | Allocations: 87) Rendered /home/kiran/.rvm/gems/ruby-2.6.0/gems/apitome-0.3.0/app/views/apitome/docs/_query.html.erb (Duration: 0.1ms | Allocations: 83) Rendered /home/kiran/.rvm/gems/ruby-2.6.0/gems/apitome-0.3.0/app/views/apitome/docs/_status.html.erb (Duration: 0.1ms | Allocations: 77) Rendered /home/kiran/.rvm/gems/ruby-2.6.0/gems/apitome-0.3.0/app/views/apitome/docs/_headers.html.erb (Duration: 0.1ms | Allocations: 92) Rendered /home/kiran/.rvm/gems/ruby-2.6.0/gems/apitome-0.3.0/app/views/apitome/docs/_body.html.erb (Duration: 0.8ms | Allocations: 2425) Rendered /home/kiran/.rvm/gems/ruby-2.6.0/gems/apitome-0.3.0/app/views/apitome/docs/_example.html.erb (Duration: 4.8ms | Allocations: 10099) Rendered /home/kiran/.rvm/gems/ruby-2.6.0/gems/apitome-0.3.0/app/views/apitome/docs/_all_examples.html.erb (Duration: 5.3ms | Allocations: 10775) Rendered /home/kiran/.rvm/gems/ruby-2.6.0/gems/apitome-0.3.0/app/views/apitome/docs/index.html.erb within layouts/apitome/application (Duration: 7.1ms | Allocations: 15511) Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.0ms | Allocations: 16267)

ActionView::Template::Error (JSON::ParserError): 1:

2:

<%= t(:body, scope: :apitome) %>

3:
<%= formatted_body(body, type) %>
4:

apitome (0.3.0) app/controllers/apitome/docs_controller.rb:90:in rescue in formatted_body' apitome (0.3.0) app/controllers/apitome/docs_controller.rb:82:informatted_body' actionpack (6.0.2.1) lib/abstract_controller/helpers.rb:67:in formatted_body' apitome (0.3.0) app/views/apitome/docs/_body.html.erb:3 actionview (6.0.2.1) lib/action_view/base.rb:274:in_run' actionview (6.0.2.1) lib/action_view/template.rb:185:in block in render' activesupport (6.0.2.1) lib/active_support/notifications.rb:180:inblock in instrument' activesupport (6.0.2.1) lib/active_support/notifications/instrumenter.rb:24:in instrument' activesupport (6.0.2.1) lib/active_support/notifications.rb:180:ininstrument' actionview (6.0.2.1) lib/action_view/template.rb:386:in instrument_render_template' actionview (6.0.2.1) lib/action_view/template.rb:183:inrender' actionview (6.0.2.1) lib/action_view/renderer/partial_renderer.rb:358:in block in render_partial' actionview (6.0.2.1) lib/action_view/renderer/abstract_renderer.rb:89:inblock in instrument' activesupport (6.0.2.1) lib/active_support/notifications.rb:180:in block in instrument' activesupport (6.0.2.1) lib/active_support/notifications/instrumenter.rb:24:ininstrument' activesupport (6.0.2.1) lib/active_support/notifications.rb:180:in instrument' actionview (6.0.2.1) lib/action_view/renderer/abstract_renderer.rb:88:ininstrument' actionview (6.0.2.1) lib/action_view/renderer/partial_renderer.rb:347:in render_partial' actionview (6.0.2.1) lib/action_view/renderer/partial_renderer.rb:317:inrender' actionview (6.0.2.1) lib/action_view/renderer/renderer.rb:65:in render_partial_to_object' actionview (6.0.2.1) lib/action_view/renderer/renderer.rb:27:inrender_to_object' actionview (6.0.2.1) lib/action_view/renderer/renderer.rb:22:in render' actionview (6.0.2.1) lib/action_view/helpers/rendering_helper.rb:34:inblock in render' actionview (6.0.2.1) lib/action_view/base.rb:304:in in_rendering_context' actionview (6.0.2.1) lib/action_view/helpers/rendering_helper.rb:30:inrender' haml (5.1.2) lib/haml/helpers/action_view_mods.rb:15:in render' apitome (0.3.0) app/views/apitome/docs/_example.html.erb:26 apitome (0.3.0) app/views/apitome/docs/_example.html.erb:7:ineach' apitome (0.3.0) app/views/apitome/docs/_example.html.erb:7:in each_with_index' apitome (0.3.0) app/views/apitome/docs/_example.html.erb:7 actionview (6.0.2.1) lib/action_view/base.rb:274:in_run' actionview (6.0.2.1) lib/action_view/template.rb:185:in block in render' activesupport (6.0.2.1) lib/active_support/notifications.rb:180:inblock in instrument' activesupport (6.0.2.1) lib/active_support/notifications/instrumenter.rb:24:in instrument' activesupport (6.0.2.1) lib/active_support/notifications.rb:180:ininstrument' actionview (6.0.2.1) lib/action_view/template.rb:386:in instrument_render_template' actionview (6.0.2.1) lib/action_view/template.rb:183:inrender' actionview (6.0.2.1) lib/action_view/renderer/partial_renderer.rb:358:in block in render_partial' actionview (6.0.2.1) lib/action_view/renderer/abstract_renderer.rb:89:inblock in instrument' activesupport (6.0.2.1) lib/active_support/notifications.rb:180:in block in instrument' activesupport (6.0.2.1) lib/active_support/notifications/instrumenter.rb:24:ininstrument' activesupport (6.0.2.1) lib/active_support/notifications.rb:180:in instrument' actionview (6.0.2.1) lib/action_view/renderer/abstract_renderer.rb:88:ininstrument' actionview (6.0.2.1) lib/action_view/renderer/partial_renderer.rb:347:in render_partial' actionview (6.0.2.1) lib/action_view/renderer/partial_renderer.rb:317:inrender' actionview (6.0.2.1) lib/action_view/renderer/renderer.rb:65:in render_partial_to_object' actionview (6.0.2.1) lib/action_view/renderer/renderer.rb:27:inrender_to_object' actionview (6.0.2.1) lib/action_view/renderer/renderer.rb:22:in render' actionview (6.0.2.1) lib/action_view/helpers/rendering_helper.rb:34:inblock in render' actionview (6.0.2.1) lib/action_view/base.rb:304:in in_rendering_context' actionview (6.0.2.1) lib/action_view/helpers/rendering_helper.rb:30:inrender' haml (5.1.2) lib/haml/helpers/action_view_mods.rb:15:in render' apitome (0.3.0) app/views/apitome/docs/_all_examples.html.erb:10 apitome (0.3.0) app/views/apitome/docs/_all_examples.html.erb:7:ineach' apitome (0.3.0) app/views/apitome/docs/_all_examples.html.erb:7 apitome (0.3.0) app/views/apitome/docs/_all_examples.html.erb:1:in each' apitome (0.3.0) app/views/apitome/docs/_all_examples.html.erb:1 actionview (6.0.2.1) lib/action_view/base.rb:274:in_run' actionview (6.0.2.1) lib/action_view/template.rb:185:in block in render' activesupport (6.0.2.1) lib/active_support/notifications.rb:180:inblock in instrument' activesupport (6.0.2.1) lib/active_support/notifications/instrumenter.rb:24:in instrument' activesupport (6.0.2.1) lib/active_support/notifications.rb:180:ininstrument' actionview (6.0.2.1) lib/action_view/template.rb:386:in instrument_render_template' actionview (6.0.2.1) lib/action_view/template.rb:183:inrender' actionview (6.0.2.1) lib/action_view/renderer/partial_renderer.rb:358:in block in render_partial' actionview (6.0.2.1) lib/action_view/renderer/abstract_renderer.rb:89:inblock in instrument' activesupport (6.0.2.1) lib/active_support/notifications.rb:180:in block in instrument' activesupport (6.0.2.1) lib/active_support/notifications/instrumenter.rb:24:ininstrument' activesupport (6.0.2.1) lib/active_support/notifications.rb:180:in instrument' actionview (6.0.2.1) lib/action_view/renderer/abstract_renderer.rb:88:ininstrument' actionview (6.0.2.1) lib/action_view/renderer/partial_renderer.rb:347:in render_partial' actionview (6.0.2.1) lib/action_view/renderer/partial_renderer.rb:317:inrender' actionview (6.0.2.1) lib/action_view/renderer/renderer.rb:65:in render_partial_to_object' actionview (6.0.2.1) lib/action_view/renderer/renderer.rb:53:inrender_partial' actionview (6.0.2.1) lib/action_view/helpers/rendering_helper.rb:38:in render' haml (5.1.2) lib/haml/helpers/action_view_mods.rb:15:inrender' apitome (0.3.0) app/views/apitome/docs/index.html.erb:11 actionview (6.0.2.1) lib/action_view/base.rb:274:in _run' actionview (6.0.2.1) lib/action_view/template.rb:185:inblock in render' activesupport (6.0.2.1) lib/active_support/notifications.rb:180:in block in instrument' activesupport (6.0.2.1) lib/active_support/notifications/instrumenter.rb:24:ininstrument' activesupport (6.0.2.1) lib/active_support/notifications.rb:180:in instrument' actionview (6.0.2.1) lib/action_view/template.rb:386:ininstrument_render_template' actionview (6.0.2.1) lib/action_view/template.rb:183:in render' actionview (6.0.2.1) lib/action_view/renderer/template_renderer.rb:59:inblock (2 levels) in render_template' actionview (6.0.2.1) lib/action_view/renderer/abstract_renderer.rb:89:in block in instrument' activesupport (6.0.2.1) lib/active_support/notifications.rb:180:inblock in instrument' activesupport (6.0.2.1) lib/active_support/notifications/instrumenter.rb:24:in instrument' activesupport (6.0.2.1) lib/active_support/notifications.rb:180:ininstrument' actionview (6.0.2.1) lib/action_view/renderer/abstract_renderer.rb:88:in instrument' actionview (6.0.2.1) lib/action_view/renderer/template_renderer.rb:58:inblock in render_template' actionview (6.0.2.1) lib/action_view/renderer/template_renderer.rb:66:in render_with_layout' actionview (6.0.2.1) lib/action_view/renderer/template_renderer.rb:57:inrender_template' actionview (6.0.2.1) lib/action_view/renderer/template_renderer.rb:13:in render' actionview (6.0.2.1) lib/action_view/renderer/renderer.rb:61:inrender_template_to_object' actionview (6.0.2.1) lib/action_view/renderer/renderer.rb:29:in render_to_object' actionview (6.0.2.1) lib/action_view/rendering.rb:118:inblock in _render_template' actionview (6.0.2.1) lib/action_view/base.rb:304:in in_rendering_context' actionview (6.0.2.1) lib/action_view/rendering.rb:117:in_render_template' actionpack (6.0.2.1) lib/action_controller/metal/streaming.rb:219:in _render_template' actionview (6.0.2.1) lib/action_view/rendering.rb:103:inrender_to_body' actionpack (6.0.2.1) lib/action_controller/metal/rendering.rb:52:in render_to_body' actionpack (6.0.2.1) lib/action_controller/metal/renderers.rb:142:inrender_to_body' actionpack (6.0.2.1) lib/abstract_controller/rendering.rb:25:in render' actionpack (6.0.2.1) lib/action_controller/metal/rendering.rb:36:inrender' actionpack (6.0.2.1) lib/action_controller/metal/instrumentation.rb:44:in block (2 levels) in render' activesupport (6.0.2.1) lib/active_support/core_ext/benchmark.rb:14:inblock in ms' /home/kiran/.rvm/rubies/ruby-2.6.0/lib/ruby/2.6.0/benchmark.rb:308:in realtime' activesupport (6.0.2.1) lib/active_support/core_ext/benchmark.rb:14:inms' actionpack (6.0.2.1) lib/action_controller/metal/instrumentation.rb:44:in block in render' actionpack (6.0.2.1) lib/action_controller/metal/instrumentation.rb:85:incleanup_view_runtime' activerecord (6.0.2.1) lib/active_record/railties/controller_runtime.rb:34:in cleanup_view_runtime' actionpack (6.0.2.1) lib/action_controller/metal/instrumentation.rb:43:inrender' actionpack (6.0.2.1) lib/action_controller/metal/implicit_render.rb:35:in default_render' actionpack (6.0.2.1) lib/action_controller/metal/basic_implicit_render.rb:6:inblock in send_action' actionpack (6.0.2.1) lib/action_controller/metal/basic_implicit_render.rb:6:in tap' actionpack (6.0.2.1) lib/action_controller/metal/basic_implicit_render.rb:6:insend_action' actionpack (6.0.2.1) lib/abstract_controller/base.rb:196:in process_action' actionpack (6.0.2.1) lib/action_controller/metal/rendering.rb:30:inprocess_action' actionpack (6.0.2.1) lib/abstract_controller/callbacks.rb:42:in block in process_action' activesupport (6.0.2.1) lib/active_support/callbacks.rb:135:inrun_callbacks' actionpack (6.0.2.1) lib/abstract_controller/callbacks.rb:41:in process_action' actionpack (6.0.2.1) lib/action_controller/metal/rescue.rb:22:inprocess_action' actionpack (6.0.2.1) lib/action_controller/metal/instrumentation.rb:33:in block in process_action' activesupport (6.0.2.1) lib/active_support/notifications.rb:180:inblock in instrument' activesupport (6.0.2.1) lib/active_support/notifications/instrumenter.rb:24:in instrument' activesupport (6.0.2.1) lib/active_support/notifications.rb:180:ininstrument' actionpack (6.0.2.1) lib/action_controller/metal/instrumentation.rb:32:in process_action' actionpack (6.0.2.1) lib/action_controller/metal/params_wrapper.rb:245:inprocess_action' activerecord (6.0.2.1) lib/active_record/railties/controller_runtime.rb:27:in process_action' actionpack (6.0.2.1) lib/abstract_controller/base.rb:136:inprocess' actionview (6.0.2.1) lib/action_view/rendering.rb:39:in process' actionpack (6.0.2.1) lib/action_controller/metal.rb:191:indispatch' actionpack (6.0.2.1) lib/action_controller/metal.rb:252:in dispatch' actionpack (6.0.2.1) lib/action_dispatch/routing/route_set.rb:51:indispatch' actionpack (6.0.2.1) lib/action_dispatch/routing/route_set.rb:33:in serve' actionpack (6.0.2.1) lib/action_dispatch/journey/router.rb:49:inblock in serve' actionpack (6.0.2.1) lib/action_dispatch/journey/router.rb:32:in each' actionpack (6.0.2.1) lib/action_dispatch/journey/router.rb:32:inserve' actionpack (6.0.2.1) lib/action_dispatch/routing/route_set.rb:837:in call' railties (6.0.2.1) lib/rails/engine.rb:526:incall' railties (6.0.2.1) lib/rails/railtie.rb:190:in public_send' railties (6.0.2.1) lib/rails/railtie.rb:190:inmethod_missing' actionpack (6.0.2.1) lib/action_dispatch/routing/mapper.rb:19:in block in <class:Constraints>' actionpack (6.0.2.1) lib/action_dispatch/routing/mapper.rb:48:inserve' actionpack (6.0.2.1) lib/action_dispatch/journey/router.rb:49:in block in serve' actionpack (6.0.2.1) lib/action_dispatch/journey/router.rb:32:ineach' actionpack (6.0.2.1) lib/action_dispatch/journey/router.rb:32:in serve' actionpack (6.0.2.1) lib/action_dispatch/routing/route_set.rb:837:incall' newrelic_rpm (6.8.0.360) lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in call' newrelic_rpm (6.8.0.360) lib/new_relic/rack/agent_hooks.rb:30:intraced_call' newrelic_rpm (6.8.0.360) lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in call' newrelic_rpm (6.8.0.360) lib/new_relic/rack/browser_monitoring.rb:32:intraced_call' newrelic_rpm (6.8.0.360) lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in call' versionist (2.0.1) lib/versionist/middleware.rb:39:in_call' versionist (2.0.1) lib/versionist/middleware.rb:17:in call' newrelic_rpm (6.8.0.360) lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:incall' rack (2.1.1) lib/rack/tempfile_reaper.rb:17:in call' newrelic_rpm (6.8.0.360) lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:incall' rack (2.1.1) lib/rack/etag.rb:27:in call' newrelic_rpm (6.8.0.360) lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:incall' rack (2.1.1) lib/rack/conditional_get.rb:27:in call' newrelic_rpm (6.8.0.360) lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:incall' rack (2.1.1) lib/rack/head.rb:14:in call' newrelic_rpm (6.8.0.360) lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:incall' actionpack (6.0.2.1) lib/action_dispatch/http/content_security_policy.rb:18:in call' newrelic_rpm (6.8.0.360) lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:incall' rack (2.1.1) lib/rack/session/abstract/id.rb:277:in context' rack (2.1.1) lib/rack/session/abstract/id.rb:271:incall' newrelic_rpm (6.8.0.360) lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in call' actionpack (6.0.2.1) lib/action_dispatch/middleware/cookies.rb:648:incall' newrelic_rpm (6.8.0.360) lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in call' activerecord (6.0.2.1) lib/active_record/migration.rb:567:incall' newrelic_rpm (6.8.0.360) lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in call' actionpack (6.0.2.1) lib/action_dispatch/middleware/callbacks.rb:27:inblock in call' activesupport (6.0.2.1) lib/active_support/callbacks.rb:101:in run_callbacks' actionpack (6.0.2.1) lib/action_dispatch/middleware/callbacks.rb:26:incall' newrelic_rpm (6.8.0.360) lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in call' actionpack (6.0.2.1) lib/action_dispatch/middleware/executor.rb:14:incall' newrelic_rpm (6.8.0.360) lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in call' actionpack (6.0.2.1) lib/action_dispatch/middleware/actionable_exceptions.rb:17:incall' newrelic_rpm (6.8.0.360) lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in call' rollbar (2.23.2) lib/rollbar/middleware/rails/rollbar.rb:25:inblock in call' rollbar (2.23.2) lib/rollbar.rb:145:in scoped' rollbar (2.23.2) lib/rollbar/middleware/rails/rollbar.rb:22:incall' newrelic_rpm (6.8.0.360) lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in call' actionpack (6.0.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:32:incall' rollbar (2.23.2) lib/rollbar/middleware/rails/show_exceptions.rb:22:in call_with_rollbar' newrelic_rpm (6.8.0.360) lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:incall' web-console (4.0.1) lib/web_console/middleware.rb:132:in call_app' web-console (4.0.1) lib/web_console/middleware.rb:28:inblock in call' web-console (4.0.1) lib/web_console/middleware.rb:17:in catch' web-console (4.0.1) lib/web_console/middleware.rb:17:incall' newrelic_rpm (6.8.0.360) lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in call' actionpack (6.0.2.1) lib/action_dispatch/middleware/show_exceptions.rb:33:incall' newrelic_rpm (6.8.0.360) lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in call' railties (6.0.2.1) lib/rails/rack/logger.rb:38:incall_app' railties (6.0.2.1) lib/rails/rack/logger.rb:26:in block in call' activesupport (6.0.2.1) lib/active_support/tagged_logging.rb:80:inblock in tagged' activesupport (6.0.2.1) lib/active_support/tagged_logging.rb:28:in tagged' activesupport (6.0.2.1) lib/active_support/tagged_logging.rb:80:intagged' railties (6.0.2.1) lib/rails/rack/logger.rb:26:in call' newrelic_rpm (6.8.0.360) lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:incall' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in call' newrelic_rpm (6.8.0.360) lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:incall' actionpack (6.0.2.1) lib/action_dispatch/middleware/remote_ip.rb:81:in call' newrelic_rpm (6.8.0.360) lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:incall' request_store (1.5.0) lib/request_store/middleware.rb:19:in call' newrelic_rpm (6.8.0.360) lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:incall' actionpack (6.0.2.1) lib/action_dispatch/middleware/request_id.rb:27:in call' newrelic_rpm (6.8.0.360) lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:incall' rack (2.1.1) lib/rack/method_override.rb:24:in call' newrelic_rpm (6.8.0.360) lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:incall' rack (2.1.1) lib/rack/runtime.rb:24:in call' newrelic_rpm (6.8.0.360) lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:incall' activesupport (6.0.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in call' newrelic_rpm (6.8.0.360) lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:incall' actionpack (6.0.2.1) lib/action_dispatch/middleware/executor.rb:14:in call' newrelic_rpm (6.8.0.360) lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:incall' actionpack (6.0.2.1) lib/action_dispatch/middleware/static.rb:126:in call' newrelic_rpm (6.8.0.360) lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:incall' rack (2.1.1) lib/rack/sendfile.rb:113:in call' newrelic_rpm (6.8.0.360) lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:incall' actionpack (6.0.2.1) lib/action_dispatch/middleware/host_authorization.rb:83:in call' newrelic_rpm (6.8.0.360) lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:incall' railties (6.0.2.1) lib/rails/engine.rb:526:in call' newrelic_rpm (6.8.0.360) lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:incall' puma (3.12.2) lib/puma/configuration.rb:227:in call' puma (3.12.2) lib/puma/server.rb:674:inhandle_request' puma (3.12.2) lib/puma/server.rb:476:in process_client' puma (3.12.2) lib/puma/server.rb:334:inblock in run' puma (3.12.2) lib/puma/thread_pool.rb:135:in `block in spawn_thread'

bf4 commented 4 years ago

fwiw, I'm researching this now myself. looks like you're on rails 6.0.2.1. I'm on Rails 5.2. did you just upgrade rails? have you ever had it working?

jejacks0n commented 4 years ago

Any fix for this would be appreciated. =) I currently don't have time to look into it.

bf4 commented 4 years ago

I think this is a duplicate of https://github.com/jejacks0n/apitome/issues/113

bf4 commented 4 years ago

Issue for me appears to be that rspec_api_documentation may return the string "[binary data]" as the response body, and this makes apitome blow up.

https://github.com/zipmark/rspec_api_documentation/blob/560c3bdc7bd5581e7c223334390221ecfc910be8/lib/rspec_api_documentation/client_base.rb#L88-L96

I'd like to propose adding a user-configurable error handler to handle this in addition to a fix

either in the controller https://github.com/jejacks0n/apitome/blob/cf53a41ffdc51388bc7c7bc4c2737ff8882b3dec/app/controllers/apitome/docs_controller.rb#L82-L91

or in the view which knows which request is the problematic one

https://github.com/jejacks0n/apitome/blob/6b715aa844107484293968b44b27a0d3d8697ad7/app/views/apitome/docs/_example.html.erb#L7-L27

bf4 commented 4 years ago

I made a PR https://github.com/jejacks0n/apitome/pull/115

gonna test it in my app

KiranJosh commented 4 years ago

fwiw, I'm researching this now myself. looks like you're on rails 6.0.2.1. I'm on Rails 5.2. did you just upgrade rails? have you ever had it working?

I have integrated apitome in new app only. It was working before upgrading rspec-rails to 4.0.0.

KiranJosh commented 4 years ago

I made a PR #115

gonna test it in my app

Thanks, its working.

bf4 commented 4 years ago

Issue was a change in rack and naive logic in rspec api doc with poor handling in apitome

alejandro-vericatch commented 4 years ago

Hey guys, could you release the fixes #115? I would appreciate it. Thanks!

Payal13 commented 4 years ago

I am facing the same issue. What should I do ? is this fix released?

alejandro-vericatch commented 4 years ago

I am facing the same issue. What should I do ? is this fix released?

Have a look at issue #115, there fix the problem.

ukazap commented 4 years ago

Update the Gemfile for temporary fix:

gem "apitome", github: "jejacks0n/apitome"
ShamoX commented 4 years ago

@jejacks0n Can you release the fix please ? I made a PR #118 that fixes the build

daviidy commented 3 years ago

Update the Gemfile for temporary fix:

gem "apitome", github: "jejacks0n/apitome"

It worked for me. Thanks!

ratnarajsukale commented 3 years ago

gem "apitome", github: "jejacks0n/apitome" this works

xrnm commented 2 years ago

Seeing as #115 has been merged should this be marked as closed?