Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

syntax error, unexpected keyword_end, expecting ')' #247

Closed
agungyuliaji opened this issue May 22, 2014 · 2 comments
Closed

syntax error, unexpected keyword_end, expecting ')' #247

agungyuliaji opened this issue May 22, 2014 · 2 comments

Comments

@agungyuliaji
Copy link

I have an error when access http://lvh.me:3000/apipie

14:49:03 web.1    | Started GET "/apipie" for 127.0.0.1 at 2014-05-22 14:49:03 +0700
14:49:03 web.1    | Processing by Apipie::ApipiesController#index as HTML
14:49:03 web.1    |   Rendered /Users/agung/.rvm/gems/ruby-2.1.1/gems/apipie-rails-0.2.0/app/views/apipie/apipies/apipie_404.html.erb within layouts/apipie/apipie (2.1ms)
14:49:03 web.1    | Completed 500 Internal Server Error in 386ms
14:49:04 web.1    |
14:49:04 web.1    | SyntaxError - /Users/agung/.rvm/gems/ruby-2.1.1/gems/apipie-rails-0.2.0/app/views/apipie/apipies/apipie_404.html.erb:9: syntax error, unexpected keyword_end, expecting ')'
14:49:04 web.1    | '.freeze;   end
14:49:04 web.1    |                ^
14:49:04 web.1    | /Users/agung/.rvm/gems/ruby-2.1.1/gems/apipie-rails-0.2.0/app/views/apipie/apipies/apipie_404.html.erb:14: syntax error, unexpected '=', expecting ')'
14:49:04 web.1    | ...ie.goto_homepage_html', :href = link_to(
14:49:04 web.1    | ...                               ^
14:49:04 web.1    | /Users/agung/.rvm/gems/ruby-2.1.1/gems/apipie-rails-0.2.0/app/views/apipie/apipies/apipie_404.html.erb:16: syntax error, unexpected ')', expecting keyword_end
14:49:04 web.1    | ...rl], @doc[:link_extension]))) );@output_buffer.safe_append='
14:49:04 web.1    | ...                               ^
14:49:04 web.1    | /Users/agung/.rvm/gems/ruby-2.1.1/gems/apipie-rails-0.2.0/app/views/apipie/apipies/apipie_404.html.erb:19: syntax error, unexpected keyword_ensure, expecting ')'
14:49:04 web.1    | /Users/agung/.rvm/gems/ruby-2.1.1/gems/apipie-rails-0.2.0/app/views/apipie/apipies/apipie_404.html.erb:21: syntax error, unexpected keyword_end, expecting ')':
14:49:04 web.1    |   actionview (4.1.1) lib/action_view/template.rb:297:in `'
14:49:04 web.1    |   actionview (4.1.1) lib/action_view/template.rb:297:in `compile'
14:49:04 web.1    |   actionview (4.1.1) lib/action_view/template.rb:245:in `block (2 levels) in compile!'
14:49:04 web.1    |   activesupport (4.1.1) lib/active_support/notifications.rb:161:in `instrument'
14:49:04 web.1    |   actionview (4.1.1) lib/action_view/template.rb:339:in `instrument'
14:49:04 web.1    |   actionview (4.1.1) lib/action_view/template.rb:244:in `block in compile!'
14:49:04 web.1    |   actionview (4.1.1) lib/action_view/template.rb:232:in `compile!'
14:49:04 web.1    |   actionview (4.1.1) lib/action_view/template.rb:144:in `block in render'
14:49:04 web.1    |   activesupport (4.1.1) lib/active_support/notifications.rb:159:in `block in instrument'
14:49:04 web.1    |   activesupport (4.1.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
14:49:04 web.1    |   activesupport (4.1.1) lib/active_support/notifications.rb:159:in `instrument'
14:49:04 web.1    |   actionview (4.1.1) lib/action_view/template.rb:339:in `instrument'
14:49:04 web.1    |   actionview (4.1.1) lib/action_view/template.rb:143:in `render'
14:49:04 web.1    |   actionview (4.1.1) lib/action_view/renderer/template_renderer.rb:55:in `block (2 levels) in render_template'
14:49:04 web.1    |   actionview (4.1.1) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
14:49:04 web.1    |   activesupport (4.1.1) lib/active_support/notifications.rb:159:in `block in instrument'
14:49:04 web.1    |   activesupport (4.1.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
14:49:04 web.1    |   activesupport (4.1.1) lib/active_support/notifications.rb:159:in `instrument'
14:49:04 web.1    |   actionview (4.1.1) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
14:49:04 web.1    |   actionview (4.1.1) lib/action_view/renderer/template_renderer.rb:54:in `block in render_template'
14:49:04 web.1    |   actionview (4.1.1) lib/action_view/renderer/template_renderer.rb:62:in `render_with_layout'
14:49:04 web.1    |   actionview (4.1.1) lib/action_view/renderer/template_renderer.rb:53:in `render_template'
14:49:04 web.1    |   actionview (4.1.1) lib/action_view/renderer/template_renderer.rb:17:in `render'
14:49:04 web.1    |   actionview (4.1.1) lib/action_view/renderer/renderer.rb:42:in `render_template'
14:49:04 web.1    |   actionview (4.1.1) lib/action_view/renderer/renderer.rb:23:in `render'
14:49:04 web.1    |   actionview (4.1.1) lib/action_view/rendering.rb:99:in `_render_template'
14:49:04 web.1    |   actionpack (4.1.1) lib/action_controller/metal/streaming.rb:217:in `_render_template'
14:49:04 web.1    |   actionview (4.1.1) lib/action_view/rendering.rb:82:in `render_to_body'
14:49:04 web.1    |   actionpack (4.1.1) lib/action_controller/metal/rendering.rb:32:in `render_to_body'
14:49:04 web.1    |   actionpack (4.1.1) lib/action_controller/metal/renderers.rb:32:in `render_to_body'
14:49:04 web.1    |   actionpack (4.1.1) lib/abstract_controller/rendering.rb:25:in `render'
14:49:04 web.1    |   actionpack (4.1.1) lib/action_controller/metal/rendering.rb:16:in `render'
14:49:04 web.1    |   actionpack (4.1.1) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render'
14:49:04 web.1    |   activesupport (4.1.1) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
14:49:04 web.1    |    () Users/agung/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/benchmark.rb:294:in `realtime'
14:49:04 web.1    |   activesupport (4.1.1) lib/active_support/core_ext/benchmark.rb:12:in `ms'
14:49:04 web.1    |   actionpack (4.1.1) lib/action_controller/metal/instrumentation.rb:41:in `block in render'
14:49:04 web.1    |   actionpack (4.1.1) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime'
14:49:04 web.1    |   activerecord (4.1.1) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
14:49:04 web.1    |   actionpack (4.1.1) lib/action_controller/metal/instrumentation.rb:40:in `render'
14:49:04 web.1    |   apipie-rails (0.2.0) app/controllers/apipie/apipies_controller.rb:43:in `block (2 levels) in index'
14:49:04 web.1    |   actionpack (4.1.1) lib/action_controller/metal/mime_responds.rb:258:in `respond_to'
14:49:04 web.1    |   apipie-rails (0.2.0) app/controllers/apipie/apipies_controller.rb:20:in `index'
14:49:04 web.1    |   actionpack (4.1.1) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
14:49:04 web.1    |   actionpack (4.1.1) lib/abstract_controller/base.rb:189:in `process_action'
14:49:04 web.1    |   actionpack (4.1.1) lib/action_controller/metal/rendering.rb:10:in `process_action'
14:49:04 web.1    |   actionpack (4.1.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
14:49:04 web.1    |   activesupport (4.1.1) lib/active_support/callbacks.rb:113:in `call'
14:49:04 web.1    |   activesupport (4.1.1) lib/active_support/callbacks.rb:166:in `block in halting'
14:49:04 web.1    |   activesupport (4.1.1) lib/active_support/callbacks.rb:299:in `block (2 levels) in halting'
14:49:04 web.1    |   apipie-rails (0.2.0) app/controllers/apipie/apipies_controller.rb:137:in `set_script_name'
14:49:04 web.1    |   activesupport (4.1.1) lib/active_support/callbacks.rb:424:in `block in make_lambda'
14:49:04 web.1    |   activesupport (4.1.1) lib/active_support/callbacks.rb:298:in `block in halting'
14:49:04 web.1    |   activesupport (4.1.1) lib/active_support/callbacks.rb:229:in `block in halting'
14:49:04 web.1    |   activesupport (4.1.1) lib/active_support/callbacks.rb:229:in `block in halting'
14:49:04 web.1    |   activesupport (4.1.1) lib/active_support/callbacks.rb:166:in `block in halting'
14:49:04 web.1    |   activesupport (4.1.1) lib/active_support/callbacks.rb:166:in `block in halting'
14:49:04 web.1    |   activesupport (4.1.1) lib/active_support/callbacks.rb:166:in `block in halting'
14:49:04 web.1    |   activesupport (4.1.1) lib/active_support/callbacks.rb:86:in `run_callbacks'
14:49:04 web.1    |   actionpack (4.1.1) lib/abstract_controller/callbacks.rb:19:in `process_action'
14:49:04 web.1    |   actionpack (4.1.1) lib/action_controller/metal/rescue.rb:29:in `process_action'
14:49:04 web.1    |   actionpack (4.1.1) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
14:49:04 web.1    |   activesupport (4.1.1) lib/active_support/notifications.rb:159:in `block in instrument'
14:49:04 web.1    |   activesupport (4.1.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
14:49:04 web.1    |   activesupport (4.1.1) lib/active_support/notifications.rb:159:in `instrument'
14:49:04 web.1    |   actionpack (4.1.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
14:49:04 web.1    |   actionpack (4.1.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
14:49:04 web.1    |   activerecord (4.1.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
14:49:04 web.1    |   actionpack (4.1.1) lib/abstract_controller/base.rb:136:in `process'
14:49:04 web.1    |   actionview (4.1.1) lib/action_view/rendering.rb:30:in `process'
14:49:04 web.1    |   actionpack (4.1.1) lib/action_controller/metal.rb:195:in `dispatch'
14:49:04 web.1    |   actionpack (4.1.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
14:49:04 web.1    |   actionpack (4.1.1) lib/action_controller/metal.rb:231:in `block in action'
14:49:04 web.1    |   actionpack (4.1.1) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
14:49:04 web.1    |   actionpack (4.1.1) lib/action_dispatch/routing/route_set.rb:48:in `call'
14:49:04 web.1    |   actionpack (4.1.1) lib/action_dispatch/journey/router.rb:71:in `block in call'
14:49:04 web.1    |   actionpack (4.1.1) lib/action_dispatch/journey/router.rb:59:in `call'
14:49:04 web.1    |   actionpack (4.1.1) lib/action_dispatch/routing/route_set.rb:676:in `call'
14:49:04 web.1    |   apipie-rails (0.2.0) lib/apipie/static_dispatcher.rb:65:in `call'
14:49:04 web.1    |   exception_notification (4.0.1) lib/exception_notification/rack.rb:28:in `call'
14:49:04 web.1    |   exception_notification (4.0.1) lib/exception_notification/rack.rb:28:in `call'
14:49:04 web.1    |   apipie-rails (0.2.0) lib/apipie/extractor/recorder.rb:97:in `call'
14:49:04 web.1    |   newrelic_rpm (3.8.1.221) lib/new_relic/rack/error_collector.rb:55:in `call'
14:49:04 web.1    |   newrelic_rpm (3.8.1.221) lib/new_relic/rack/agent_hooks.rb:32:in `call'
14:49:04 web.1    |   newrelic_rpm (3.8.1.221) lib/new_relic/rack/browser_monitoring.rb:27:in `call'
14:49:04 web.1    |   newrelic_rpm (3.8.1.221) lib/new_relic/rack/developer_mode.rb:45:in `call'
14:49:04 web.1    |   request_store (1.0.5) lib/request_store/middleware.rb:9:in `call'
14:49:04 web.1    |   meta_request (0.3.0) lib/meta_request/middlewares/app_request_handler.rb:13:in `call'
14:49:04 web.1    |   rack-contrib (1.1.0) lib/rack/contrib/response_headers.rb:17:in `call'
14:49:04 web.1    |   meta_request (0.3.0) lib/meta_request/middlewares/headers.rb:16:in `call'
14:49:04 web.1    |   meta_request (0.3.0) lib/meta_request/middlewares/meta_request_handler.rb:13:in `call'
14:49:04 web.1    |   warden (1.2.3) lib/warden/manager.rb:35:in `block in call'
14:49:04 web.1    |   warden (1.2.3) lib/warden/manager.rb:34:in `call'
14:49:04 web.1    |   rack (1.5.2) lib/rack/etag.rb:23:in `call'
14:49:04 web.1    |   rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'
14:49:04 web.1    |   rack (1.5.2) lib/rack/head.rb:11:in `call'
14:49:04 web.1    |   actionpack (4.1.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
14:49:04 web.1    |   actionpack (4.1.1) lib/action_dispatch/middleware/flash.rb:254:in `call'
14:49:04 web.1    |   rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
14:49:04 web.1    |   rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
14:49:04 web.1    |   actionpack (4.1.1) lib/action_dispatch/middleware/cookies.rb:560:in `call'
14:49:04 web.1    |   activerecord (4.1.1) lib/active_record/query_cache.rb:36:in `call'
14:49:04 web.1    |   activerecord (4.1.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
14:49:04 web.1    |   activerecord (4.1.1) lib/active_record/migration.rb:380:in `call'
14:49:04 web.1    |   actionpack (4.1.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
14:49:04 web.1    |   activesupport (4.1.1) lib/active_support/callbacks.rb:82:in `run_callbacks'
14:49:04 web.1    |   actionpack (4.1.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
14:49:04 web.1    |   actionpack (4.1.1) lib/action_dispatch/middleware/reloader.rb:73:in `call'
14:49:04 web.1    |   actionpack (4.1.1) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
14:49:04 web.1    |   better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call'
14:49:04 web.1    |   better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call'
14:49:04 web.1    |   better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call'
14:49:04 web.1    |   actionpack (4.1.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
14:49:04 web.1    |   actionpack (4.1.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
14:49:04 web.1    |   railties (4.1.1) lib/rails/rack/logger.rb:38:in `call_app'
14:49:04 web.1    |   railties (4.1.1) lib/rails/rack/logger.rb:20:in `block in call'
14:49:04 web.1    |   activesupport (4.1.1) lib/active_support/tagged_logging.rb:68:in `block in tagged'
14:49:04 web.1    |   activesupport (4.1.1) lib/active_support/tagged_logging.rb:26:in `tagged'
14:49:04 web.1    |   activesupport (4.1.1) lib/active_support/tagged_logging.rb:68:in `tagged'
14:49:04 web.1    |   railties (4.1.1) lib/rails/rack/logger.rb:20:in `call'
14:49:04 web.1    |   quiet_assets (1.0.2) lib/quiet_assets.rb:18:in `call_with_quiet_assets'
14:49:04 web.1    |   actionpack (4.1.1) lib/action_dispatch/middleware/request_id.rb:21:in `call'
14:49:04 web.1    |   rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
14:49:04 web.1    |   rack (1.5.2) lib/rack/runtime.rb:17:in `call'
14:49:04 web.1    |   activesupport (4.1.1) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
14:49:04 web.1    |   rack (1.5.2) lib/rack/lock.rb:17:in `call'
14:49:04 web.1    |   actionpack (4.1.1) lib/action_dispatch/middleware/static.rb:64:in `call'
14:49:04 web.1    |   rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
14:49:04 web.1    |   railties (4.1.1) lib/rails/engine.rb:514:in `call'
14:49:04 web.1    |   railties (4.1.1) lib/rails/application.rb:144:in `call'
14:49:04 web.1    |   rack (1.5.2) lib/rack/content_length.rb:14:in `call'
14:49:04 web.1    |   puma (2.8.2) lib/puma/server.rb:490:in `handle_request'
14:49:04 web.1    |   puma (2.8.2) lib/puma/server.rb:361:in `process_client'
14:49:04 web.1    |   puma (2.8.2) lib/puma/server.rb:254:in `block in run'
14:49:04 web.1    |   puma (2.8.2) lib/puma/thread_pool.rb:92:in `block in spawn_thread'
14:49:04 web.1    |
14:49:04 web.1    |
14:49:04 web.1    |
@iNecas
Copy link
Member

iNecas commented May 23, 2014

Hi,

I believe this was fixed as part of #246, I've just released the 0.2.1 release that should include this fixes. Please let me know if that resolves your issues

@agungyuliaji
Copy link
Author

ok thanks a lot! :) work now

STATEMENT OF CONFIDENTIALITY
_The information contained in this email and any attachments to this
message are intended for the exclusive use *_of the addressee(s) and may
contain confidential or privileged information. If you are not the
intended recipient,* please notify the sender immediately and destroy all
copies of this email and any attachments.

On Fri, May 23, 2014 at 4:11 PM, Ivan Necas notifications@github.comwrote:

Hi,

I believe this was fixed as part of #246#246,
I've just released the 0.2.1 release that should include this fixes. Please
let me know if that resolves your issues


Reply to this email directly or view it on GitHubhttps://github.com//issues/247#issuecomment-43987266
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants