我要访问正在呈现 JSON 响应的 URL 端点,但我在 Rails 服务器日志中看到此错误:
\n\n\n于 2019-07-08 22:39:43 +0530 开始 GET "/sw.js" for ::1
\n\nActionController::RoutingError(没有路由匹配 [GET]“/sw.js”):
\n\nactionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in \'call\'
\n web-console (3.7.0) lib/web_console/middleware.rb:135:in \'call_app\'
\n Web 控制台 (3.7.0) lib/web_console/middleware.rb:30:in \'阻止调用\'
\n Web 控制台 (3.7.0) lib/web_console/middleware.rb:20:in \ 'catch\'
\n web-console (3.7.0) lib/web_console/middleware.rb:20:in \'call\' \
n actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:在\'call\'
\nrailties(5.2.3)lib/rails/rack/logger.rb:38:在\'call_app\'
\nrailties(5.2.3)lib/rails/rack/logger.rb: 26:在“呼叫中的块”\
n activesupport(5.2.3)lib / active_support / tagged_logging.rb:71:在“标记中的块”
\ n activesupport(5.2.3)lib / active_support / tagged_logging。 rb:28:在\'tagged\'
\n activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:在\'tagged\'
\n Railties (5.2.3) lib/rails/rack/logger。 rb:26:in …