We've moved discussions to Discord

Service worker routing error

Alex Núñez
Hi! 

I'm getting a random RoutingError on /service-worker.js

Here the error log:

User excluded error: #<ActionController::RoutingError: No route matches [GET] "/service-worker.js">
  
ActionController::RoutingError (No route matches [GET] "/service-worker.js"):
  
actionpack (6.0.3.4) lib/action_dispatch/middleware/debug_exceptions.rb:36:in `call'
rack-livereload (0.3.17) lib/rack/livereload.rb:23:in `_call'
rack-livereload (0.3.17) lib/rack/livereload.rb:14:in `call'
web-console (4.1.0) lib/web_console/middleware.rb:132:in `call_app'
web-console (4.1.0) lib/web_console/middleware.rb:28:in `block in call'
web-console (4.1.0) lib/web_console/middleware.rb:17:in `catch'
web-console (4.1.0) lib/web_console/middleware.rb:17:in `call'
actionpack (6.0.3.4) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
turbolinks_render (0.9.20) lib/turbolinks_render/middleware.rb:81:in `call'
railties (6.0.3.4) lib/rails/rack/logger.rb:37:in `call_app'
railties (6.0.3.4) lib/rails/rack/logger.rb:26:in `block in call'
activesupport (6.0.3.4) lib/active_support/tagged_logging.rb:80:in `block in tagged'
activesupport (6.0.3.4) lib/active_support/tagged_logging.rb:28:in `tagged'
activesupport (6.0.3.4) lib/active_support/tagged_logging.rb:80:in `tagged'
railties (6.0.3.4) lib/rails/rack/logger.rb:26:in `call'
sprockets-rails (3.2.2) lib/sprockets/rails/quiet_assets.rb:13:in `call'
actionpack (6.0.3.4) lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
request_store (1.5.0) lib/request_store/middleware.rb:19:in `call'
actionpack (6.0.3.4) lib/action_dispatch/middleware/request_id.rb:27:in `call'
rack (2.2.3) lib/rack/method_override.rb:24:in `call'
rack (2.2.3) lib/rack/runtime.rb:22:in `call'
activesupport (6.0.3.4) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
actionpack (6.0.3.4) lib/action_dispatch/middleware/executor.rb:14:in `call'
actionpack (6.0.3.4) lib/action_dispatch/middleware/static.rb:126:in `call'
rack (2.2.3) lib/rack/sendfile.rb:110:in `call'
actionpack (6.0.3.4) lib/action_dispatch/middleware/host_authorization.rb:76:in `call'
sentry-raven (3.1.1) lib/raven/integrations/rack.rb:51:in `call'
webpacker (31b7a6f31e38) lib/webpacker/dev_server_proxy.rb:25:in `perform_request'
rack-proxy (0.6.5) lib/rack/proxy.rb:57:in `call'
railties (6.0.3.4) lib/rails/engine.rb:527:in `call'
puma (5.0.4) lib/puma/configuration.rb:239:in `call'
puma (5.0.4) lib/puma/request.rb:76:in `block in handle_request'
puma (5.0.4) lib/puma/thread_pool.rb:337:in `with_force_shutdown'
puma (5.0.4) lib/puma/request.rb:75:in `handle_request'
puma (5.0.4) lib/puma/server.rb:430:in `process_client'
puma (5.0.4) lib/puma/thread_pool.rb:145:in `block in spawn_thread'

Any advice? 

Thanks!
Alex
Chris Oliver
You might have built an app that installed a service worker on the domain previously, so the browser will continue to check for it.
Alex Núñez
Yep! That's it. Thanks! :)
Notifications
You’re not receiving notifications from this thread.