新手问题 打开 OAuth 应用的新建页面, 406 错误

119977 · 2016年09月24日 · 最后由 jasl 回复于 2016年09月24日 · 1863 次阅读

打开 oauth 应用的新建页面,406 错误,在\app\views\admin\applications 目录下新建了空白 new.html.erb 就不再报 406 错误了。

W, [2016-09-24T15:49:39.664184 #7661]  WARN -- : Creating scope :without_body. Overwriting existing method Reply.without_body.
W, [2016-09-24T15:49:40.056203 #7661]  WARN -- : Creating scope :without_body. Overwriting existing method Topic.without_body.
I, [2016-09-24T15:49:56.459362 #7661]  INFO -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] Started GET "/admin/applications/new" for 127.0.0.1 at 2016-09-24 15:49:56 +0800
I, [2016-09-24T15:49:56.761472 #7661]  INFO -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] Processing by Admin::ApplicationsController#new as HTML
I, [2016-09-24T15:49:57.628289 #7661]  INFO -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] Completed 406 Not Acceptable in 866ms (ActiveRecord: 0.0ms)
F, [2016-09-24T15:49:57.635403 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26]   
F, [2016-09-24T15:49:57.637285 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] ActionController::UnknownFormat (Admin::ApplicationsController#new is missing a template for this request format and variant.

request.formats: ["text/html"]
request.variant: []

NOTE! For XHR/Ajax or API requests, this action would normally respond with 204 No Content: an empty white screen. Since you're loading it in a web browser, we assume that you expected to actually render a template, not鈥?nothing, so we're showing an error to be extra-clear. If you expect 204 No Content, carry on. That's what you'll get from an XHR or API request. Give it a shot.):
F, [2016-09-24T15:49:57.637480 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26]   
F, [2016-09-24T15:49:57.637634 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] actionpack (5.0.0.1) lib/action_controller/metal/implicit_render.rb:56:in `default_render'
F, [2016-09-24T15:49:57.637751 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] actionpack (5.0.0.1) lib/action_controller/metal/basic_implicit_render.rb:4:in `block in send_action'
F, [2016-09-24T15:49:57.638191 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] actionpack (5.0.0.1) lib/action_controller/metal/basic_implicit_render.rb:4:in `tap'
F, [2016-09-24T15:49:57.638367 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] actionpack (5.0.0.1) lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'
F, [2016-09-24T15:49:57.638466 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] actionpack (5.0.0.1) lib/abstract_controller/base.rb:188:in `process_action'
F, [2016-09-24T15:49:57.639091 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] actionpack (5.0.0.1) lib/action_controller/metal/rendering.rb:30:in `process_action'
F, [2016-09-24T15:49:57.639257 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] actionpack (5.0.0.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
F, [2016-09-24T15:49:57.639355 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] activesupport (5.0.0.1) lib/active_support/callbacks.rb:126:in `call'
F, [2016-09-24T15:49:57.639414 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] activesupport (5.0.0.1) lib/active_support/callbacks.rb:506:in `block (2 levels) in compile'
F, [2016-09-24T15:49:57.639465 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] activesupport (5.0.0.1) lib/active_support/callbacks.rb:455:in `call'
F, [2016-09-24T15:49:57.639548 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] activesupport (5.0.0.1) lib/active_support/callbacks.rb:101:in `__run_callbacks__'
F, [2016-09-24T15:49:57.640126 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] activesupport (5.0.0.1) lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'
F, [2016-09-24T15:49:57.640513 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] activesupport (5.0.0.1) lib/active_support/callbacks.rb:90:in `run_callbacks'
F, [2016-09-24T15:49:57.640657 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] actionpack (5.0.0.1) lib/abstract_controller/callbacks.rb:19:in `process_action'
F, [2016-09-24T15:49:57.640818 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] actionpack (5.0.0.1) lib/action_controller/metal/rescue.rb:20:in `process_action'
F, [2016-09-24T15:49:57.641003 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] actionpack (5.0.0.1) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
F, [2016-09-24T15:49:57.641101 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] activesupport (5.0.0.1) lib/active_support/notifications.rb:164:in `block in instrument'
F, [2016-09-24T15:49:57.641189 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] activesupport (5.0.0.1) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
F, [2016-09-24T15:49:57.641269 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] activesupport (5.0.0.1) lib/active_support/notifications.rb:164:in `instrument'
F, [2016-09-24T15:49:57.641372 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] actionpack (5.0.0.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
F, [2016-09-24T15:49:57.641456 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] actionpack (5.0.0.1) lib/action_controller/metal/params_wrapper.rb:248:in `process_action'
F, [2016-09-24T15:49:57.641531 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] activerecord (5.0.0.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
F, [2016-09-24T15:49:57.641614 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] actionpack (5.0.0.1) lib/abstract_controller/base.rb:126:in `process'
F, [2016-09-24T15:49:57.641694 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] actionview (5.0.0.1) lib/action_view/rendering.rb:30:in `process'
F, [2016-09-24T15:49:57.641873 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] actionpack (5.0.0.1) lib/action_controller/metal.rb:190:in `dispatch'
F, [2016-09-24T15:49:57.641970 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] actionpack (5.0.0.1) lib/action_controller/metal.rb:262:in `dispatch'
F, [2016-09-24T15:49:57.642049 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] actionpack (5.0.0.1) lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
F, [2016-09-24T15:49:57.642126 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] actionpack (5.0.0.1) lib/action_dispatch/routing/route_set.rb:32:in `serve'
F, [2016-09-24T15:49:57.642207 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] actionpack (5.0.0.1) lib/action_dispatch/journey/router.rb:39:in `block in serve'
F, [2016-09-24T15:49:57.642430 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] actionpack (5.0.0.1) lib/action_dispatch/journey/router.rb:26:in `each'
F, [2016-09-24T15:49:57.642535 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] actionpack (5.0.0.1) lib/action_dispatch/journey/router.rb:26:in `serve'
F, [2016-09-24T15:49:57.642613 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] actionpack (5.0.0.1) lib/action_dispatch/routing/route_set.rb:725:in `call'
F, [2016-09-24T15:49:57.642690 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] omniauth (1.3.1) lib/omniauth/strategy.rb:186:in `call!'
F, [2016-09-24T15:49:57.642996 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] omniauth (1.3.1) lib/omniauth/strategy.rb:164:in `call'
F, [2016-09-24T15:49:57.643133 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] oneapm_rpm (1.3.7) lib/one_apm/rack/middleware_hooks.rb:14:in `traced_call'
F, [2016-09-24T15:49:57.643241 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] oneapm_rpm (1.3.7) lib/one_apm/rack/middleware_tracing.rb:67:in `call'
F, [2016-09-24T15:49:57.643343 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] oneapm_rpm (1.3.7) lib/one_apm/rack/browser_monitoring.rb:21:in `traced_call'
F, [2016-09-24T15:49:57.643446 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] oneapm_rpm (1.3.7) lib/one_apm/rack/middleware_tracing.rb:67:in `call'
F, [2016-09-24T15:49:57.643557 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] http_accept_language (2.0.5) lib/http_accept_language/middleware.rb:14:in `call'
F, [2016-09-24T15:49:57.643808 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] rack-attack (5.0.1) lib/rack/attack.rb:147:in `call'
F, [2016-09-24T15:49:57.644015 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] exception_notification (4.2.1) lib/exception_notification/rack.rb:32:in `call'
F, [2016-09-24T15:49:57.644098 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] warden (1.2.6) lib/warden/manager.rb:35:in `block in call'
F, [2016-09-24T15:49:57.644155 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] warden (1.2.6) lib/warden/manager.rb:34:in `catch'
F, [2016-09-24T15:49:57.644208 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] warden (1.2.6) lib/warden/manager.rb:34:in `call'
F, [2016-09-24T15:49:57.644384 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] rack (2.0.1) lib/rack/etag.rb:25:in `call'
F, [2016-09-24T15:49:57.644452 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] rack (2.0.1) lib/rack/conditional_get.rb:25:in `call'
F, [2016-09-24T15:49:57.645093 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] rack (2.0.1) lib/rack/head.rb:12:in `call'
F, [2016-09-24T15:49:57.645296 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] rack (2.0.1) lib/rack/session/abstract/id.rb:222:in `context'
F, [2016-09-24T15:49:57.645414 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] rack (2.0.1) lib/rack/session/abstract/id.rb:216:in `call'
F, [2016-09-24T15:49:57.645549 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] actionpack (5.0.0.1) lib/action_dispatch/middleware/cookies.rb:613:in `call'
F, [2016-09-24T15:49:57.645742 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] actionpack (5.0.0.1) lib/action_dispatch/middleware/callbacks.rb:38:in `block in call'
F, [2016-09-24T15:49:57.645878 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] activesupport (5.0.0.1) lib/active_support/callbacks.rb:97:in `__run_callbacks__'
F, [2016-09-24T15:49:57.645970 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] activesupport (5.0.0.1) lib/active_support/callbacks.rb:750:in `_run_call_callbacks'
F, [2016-09-24T15:49:57.646058 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] activesupport (5.0.0.1) lib/active_support/callbacks.rb:90:in `run_callbacks'
F, [2016-09-24T15:49:57.646273 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] actionpack (5.0.0.1) lib/action_dispatch/middleware/callbacks.rb:36:in `call'
F, [2016-09-24T15:49:57.646420 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] actionpack (5.0.0.1) lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
F, [2016-09-24T15:49:57.646518 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] actionpack (5.0.0.1) lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call'
F, [2016-09-24T15:49:57.646753 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] actionpack (5.0.0.1) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
F, [2016-09-24T15:49:57.646916 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] railties (5.0.0.1) lib/rails/rack/logger.rb:36:in `call_app'
F, [2016-09-24T15:49:57.647045 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] railties (5.0.0.1) lib/rails/rack/logger.rb:24:in `block in call'
F, [2016-09-24T15:49:57.647127 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] activesupport (5.0.0.1) lib/active_support/tagged_logging.rb:70:in `block in tagged'
F, [2016-09-24T15:49:57.647208 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] activesupport (5.0.0.1) lib/active_support/tagged_logging.rb:26:in `tagged'
F, [2016-09-24T15:49:57.647393 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] activesupport (5.0.0.1) lib/active_support/tagged_logging.rb:70:in `tagged'
F, [2016-09-24T15:49:57.647510 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] railties (5.0.0.1) lib/rails/rack/logger.rb:24:in `call'
F, [2016-09-24T15:49:57.647835 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] actionpack (5.0.0.1) lib/action_dispatch/middleware/request_id.rb:24:in `call'
F, [2016-09-24T15:49:57.647958 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] rack (2.0.1) lib/rack/method_override.rb:22:in `call'
F, [2016-09-24T15:49:57.648040 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] rack (2.0.1) lib/rack/runtime.rb:22:in `call'
F, [2016-09-24T15:49:57.648098 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] activesupport (5.0.0.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
F, [2016-09-24T15:49:57.648149 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] actionpack (5.0.0.1) lib/action_dispatch/middleware/executor.rb:12:in `call'
F, [2016-09-24T15:49:57.648223 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] rack (2.0.1) lib/rack/sendfile.rb:111:in `call'
F, [2016-09-24T15:49:57.648275 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] actionpack (5.0.0.1) lib/action_dispatch/middleware/ssl.rb:83:in `call'
F, [2016-09-24T15:49:57.648331 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] rack-cors (0.4.0) lib/rack/cors.rb:80:in `call'
F, [2016-09-24T15:49:57.648384 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] rack-utf8_sanitizer (1.3.2) lib/rack/utf8_sanitizer.rb:19:in `call'
F, [2016-09-24T15:49:57.648432 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] railties (5.0.0.1) lib/rails/engine.rb:522:in `call'
F, [2016-09-24T15:49:57.648493 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] oneapm_rpm (1.3.7) lib/one_apm/rack/middleware_tracing.rb:67:in `call'
F, [2016-09-24T15:49:57.648542 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] puma (3.6.0) lib/puma/configuration.rb:225:in `call'
F, [2016-09-24T15:49:57.648736 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] puma (3.6.0) lib/puma/server.rb:578:in `handle_request'
F, [2016-09-24T15:49:57.648821 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] puma (3.6.0) lib/puma/server.rb:415:in `process_client'
F, [2016-09-24T15:49:57.648873 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] puma (3.6.0) lib/puma/server.rb:275:in `block in run'
F, [2016-09-24T15:49:57.648945 #7661] FATAL -- : [9bb71437-fff6-43db-96db-d1cbd31f3a26] puma (3.6.0) lib/puma/thread_pool.rb:116:in `block in spawn_thread'

刚发现在个人设置 - 管理我的应用 - 注册新应用后后台可以显示,但是看样子只是授权访问个人账号,原来的支付宝、微信之类的要使用插件吗

@huacnlee oauth 那块没用 doorkeeper 的 UI,所以版本差异太大会有问题,看来后台也要大修补一下啦

需要 登录 后方可回复, 如果你还没有账号请 注册新账号