Приложение написано на Angular+Rails(puma) и развернуто на веб-сервере Nginx. В приложение предусмотрена авторизация пользователя. И проблема в том что сама авторизация проходит но когда я попадаю на главную страницу данные не прогружаются. Консоль в браузере выдает такие ошибки:
ERROR Error: Cannot find control with name: 'rest_solution'
at w (0.c239daa26d3b8de351f1.chunk.js:1)
at v (0.c239daa26d3b8de351f1.chunk.js:1)
at e.addControl (0.c239daa26d3b8de351f1.chunk.js:1)
at e._setUpControl (0.c239daa26d3b8de351f1.chunk.js:1)
at e.ngOnChanges (0.c239daa26d3b8de351f1.chunk.js:1)
at bn (vendor.f655123b9caa2e209eaf.bundle.js:1)
at ur (vendor.f655123b9caa2e209eaf.bundle.js:1)
at ir (vendor.f655123b9caa2e209eaf.bundle.js:1)
at Ir (vendor.f655123b9caa2e209eaf.bundle.js:1)
at Object.updateDirectives (1.ddef93b4011425e94bf3.chunk.js:1)
_ @ vendor.f655123b9caa2e209eaf.bundle.js:1
t.handleError @ vendor.f655123b9caa2e209eaf.bundle.js:1
e.tick @ vendor.f655123b9caa2e209eaf.bundle.js:1
(anonymous) @ vendor.f655123b9caa2e209eaf.bundle.js:1
t.invoke @ polyfills.c4f464edc1631eb08348.bundle.js:1
onInvoke @ vendor.f655123b9caa2e209eaf.bundle.js:1
t.invoke @ polyfills.c4f464edc1631eb08348.bundle.js:1
r.run @ polyfills.c4f464edc1631eb08348.bundle.js:1
t.run @ vendor.f655123b9caa2e209eaf.bundle.js:1
next @ vendor.f655123b9caa2e209eaf.bundle.js:1
e.object.o @ vendor.f655123b9caa2e209eaf.bundle.js:1
e.__tryOrUnsub @ vendor.f655123b9caa2e209eaf.bundle.js:1
e.next @ vendor.f655123b9caa2e209eaf.bundle.js:1
e._next @ vendor.f655123b9caa2e209eaf.bundle.js:1
e.next @ vendor.f655123b9caa2e209eaf.bundle.js:1
e.next @ vendor.f655123b9caa2e209eaf.bundle.js:1
e.emit @ vendor.f655123b9caa2e209eaf.bundle.js:1
t.checkStable @ vendor.f655123b9caa2e209eaf.bundle.js:1
t.setHasMicrotask @ vendor.f655123b9caa2e209eaf.bundle.js:1
onHasTask @ vendor.f655123b9caa2e209eaf.bundle.js:1
t.hasTask @ polyfills.c4f464edc1631eb08348.bundle.js:1
t._updateTaskCount @ polyfills.c4f464edc1631eb08348.bundle.js:1
r._updateTaskCount @ polyfills.c4f464edc1631eb08348.bundle.js:1
r.runTask @ polyfills.c4f464edc1631eb08348.bundle.js:1
o @ polyfills.c4f464edc1631eb08348.bundle.js:1
Promise resolved (async)
r @ polyfills.c4f464edc1631eb08348.bundle.js:1
t.scheduleTask @ polyfills.c4f464edc1631eb08348.bundle.js:1
onScheduleTask @ polyfills.c4f464edc1631eb08348.bundle.js:1
t.scheduleTask @ polyfills.c4f464edc1631eb08348.bundle.js:1
r.scheduleTask @ polyfills.c4f464edc1631eb08348.bundle.js:1
r.scheduleMicroTask @ polyfills.c4f464edc1631eb08348.bundle.js:1
f @ polyfills.c4f464edc1631eb08348.bundle.js:1
u @ polyfills.c4f464edc1631eb08348.bundle.js:1
(anonymous) @ polyfills.c4f464edc1631eb08348.bundle.js:1
window.webpackJsonp @ inline.243b11183ceb238213b2.bundle.js:1
(anonymous) @ 0.c239daa26d3b8de351f1.chunk.js:1
vendor.f655123b9caa2e209eaf.bundle.js:1 ERROR TypeError: Cannot read property 'value' of undefined
at t.updateOptionsList (0.c239daa26d3b8de351f1.chunk.js:1)
at t.ngOnChanges (0.c239daa26d3b8de351f1.chunk.js:1)
at bn (vendor.f655123b9caa2e209eaf.bundle.js:1)
at ur (vendor.f655123b9caa2e209eaf.bundle.js:1)
at ir (vendor.f655123b9caa2e209eaf.bundle.js:1)
at Ir (vendor.f655123b9caa2e209eaf.bundle.js:1)
at Object.updateDirectives (1.ddef93b4011425e94bf3.chunk.js:1)
at Object.updateDirectives (vendor.f655123b9caa2e209eaf.bundle.js:1)
at or (vendor.f655123b9caa2e209eaf.bundle.js:1)
at mr (vendor.f655123b9caa2e209eaf.bundle.js:1)
_ @ vendor.f655123b9caa2e209eaf.bundle.js:1
t.handleError @ vendor.f655123b9caa2e209eaf.bundle.js:1
e.tick @ vendor.f655123b9caa2e209eaf.bundle.js:1
(anonymous) @ vendor.f655123b9caa2e209eaf.bundle.js:1
t.invoke @ polyfills.c4f464edc1631eb08348.bundle.js:1
onInvoke @ vendor.f655123b9caa2e209eaf.bundle.js:1
t.invoke @ polyfills.c4f464edc1631eb08348.bundle.js:1
r.run @ polyfills.c4f464edc1631eb08348.bundle.js:1
t.run @ vendor.f655123b9caa2e209eaf.bundle.js:1
next @ vendor.f655123b9caa2e209eaf.bundle.js:1
e.object.o @ vendor.f655123b9caa2e209eaf.bundle.js:1
e.__tryOrUnsub @ vendor.f655123b9caa2e209eaf.bundle.js:1
e.next @ vendor.f655123b9caa2e209eaf.bundle.js:1
e._next @ vendor.f655123b9caa2e209eaf.bundle.js:1
e.next @ vendor.f655123b9caa2e209eaf.bundle.js:1
e.next @ vendor.f655123b9caa2e209eaf.bundle.js:1
e.emit @ vendor.f655123b9caa2e209eaf.bundle.js:1
t.checkStable @ vendor.f655123b9caa2e209eaf.bundle.js:1
t.setHasMicrotask @ vendor.f655123b9caa2e209eaf.bundle.js:1
onHasTask @ vendor.f655123b9caa2e209eaf.bundle.js:1
t.hasTask @ polyfills.c4f464edc1631eb08348.bundle.js:1
t._updateTaskCount @ polyfills.c4f464edc1631eb08348.bundle.js:1
r._updateTaskCount @ polyfills.c4f464edc1631eb08348.bundle.js:1
r.runTask @ polyfills.c4f464edc1631eb08348.bundle.js:1
o @ polyfills.c4f464edc1631eb08348.bundle.js:1
Promise resolved (async)
r @ polyfills.c4f464edc1631eb08348.bundle.js:1
t.scheduleTask @ polyfills.c4f464edc1631eb08348.bundle.js:1
onScheduleTask @ polyfills.c4f464edc1631eb08348.bundle.js:1
t.scheduleTask @ polyfills.c4f464edc1631eb08348.bundle.js:1
r.scheduleTask @ polyfills.c4f464edc1631eb08348.bundle.js:1
r.scheduleMicroTask @ polyfills.c4f464edc1631eb08348.bundle.js:1
f @ polyfills.c4f464edc1631eb08348.bundle.js:1
u @ polyfills.c4f464edc1631eb08348.bundle.js:1
(anonymous) @ polyfills.c4f464edc1631eb08348.bundle.js:1
window.webpackJsonp @ inline.243b11183ceb238213b2.bundle.js:1
(anonymous) @ 0.c239daa26d3b8de351f1.chunk.js:1
vendor.f655123b9caa2e209eaf.bundle.js:1 ERROR TypeError: Cannot read property 'hasSelected' of undefined
at Object.updateDirectives (1.ddef93b4011425e94bf3.chunk.js:1)
at Object.updateDirectives (vendor.f655123b9caa2e209eaf.bundle.js:1)
at or (vendor.f655123b9caa2e209eaf.bundle.js:1)
at mr (vendor.f655123b9caa2e209eaf.bundle.js:1)
at vr (vendor.f655123b9caa2e209eaf.bundle.js:1)
at or (vendor.f655123b9caa2e209eaf.bundle.js:1)
at mr (vendor.f655123b9caa2e209eaf.bundle.js:1)
at yr (vendor.f655123b9caa2e209eaf.bundle.js:1)
at or (vendor.f655123b9caa2e209eaf.bundle.js:1)
at mr (vendor.f655123b9caa2e209eaf.bundle.js:1)
{"status":404,"error":"Not Found","exception":"#\u003cActionController::RoutingError: No route matches [GET] \"/daily_report/20\"\u003e","traces":{"Application Trace":[],"Framework Trace":[{"id":0,"trace":"actionpack (5.0.3) lib/action_dispatch/middleware/debug_exceptions.rb:53:in `call'"},{"id":1,"trace":"actionpack (5.0.3) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'"},{"id":2,"trace":"railties (5.0.3) lib/rails/rack/logger.rb:36:in `call_app'"},{"id":3,"trace":"railties (5.0.3) lib/rails/rack/logger.rb:24:in `block in call'"},{"id":4,"trace":"activesupport (5.0.3) lib/active_support/tagged_logging.rb:69:in `block in tagged'"},{"id":5,"trace":"activesupport (5.0.3) lib/active_support/tagged_logging.rb:26:in `tagged'"},{"id":6,"trace":"activesupport (5.0.3) lib/active_support/tagged_logging.rb:69:in `tagged'"},{"id":7,"trace":"railties (5.0.3) lib/rails/rack/logger.rb:24:in `call'"},{"id":8,"trace":"actionpack (5.0.3) lib/action_dispatch/middleware/request_id.rb:24:in `call'"},{"id":9,"trace":"rack (2.0.3) lib/rack/runtime.rb:22:in `call'"},{"id":10,"trace":"activesupport (5.0.3) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'"},{"id":11,"trace":"actionpack (5.0.3) lib/action_dispatch/middleware/executor.rb:12:in `call'"},{"id":12,"trace":"actionpack (5.0.3) lib/action_dispatch/middleware/static.rb:136:in `call'"},{"id":13,"trace":"rack (2.0.3) lib/rack/sendfile.rb:111:in `call'"},{"id":14,"trace":"rack-cors (0.4.1) lib/rack/cors.rb:81:in `call'"},{"id":15,"trace":"railties (5.0.3) lib/rails/engine.rb:522:in `call'"},{"id":16,"trace":"puma (3.8.2) lib/puma/configuration.rb:224:in `call'"},{"id":17,"trace":"puma (3.8.2) lib/puma/server.rb:600:in `handle_request'"},{"id":18,"trace":"puma (3.8.2) lib/puma/server.rb:435:in `process_client'"},{"id":19,"trace":"puma (3.8.2) lib/puma/server.rb:299:in `block in run'"},{"id":20,"trace":"puma (3.8.2) lib/puma/thread_pool.rb:120:in `block in spawn_thread'"}],"Full Trace":[{"id":0,"trace":"actionpack (5.0.3) lib/action_dispatch/middleware/debug_exceptions.rb:53:in `call'"},{"id":1,"trace":"actionpack (5.0.3) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'"},{"id":2,"trace":"railties (5.0.3) lib/rails/rack/logger.rb:36:in `call_app'"},{"id":3,"trace":"railties (5.0.3) lib/rails/rack/logger.rb:24:in `block in call'"},{"id":4,"trace":"activesupport (5.0.3) lib/active_support/tagged_logging.rb:69:in `block in tagged'"},{"id":5,"trace":"activesupport (5.0.3) lib/active_support/tagged_logging.rb:26:in `tagged'"},{"id":6,"trace":"activesupport (5.0.3) lib/active_support/tagged_logging.rb:69:in `tagged'"},{"id":7,"trace":"railties (5.0.3) lib/rails/rack/logger.rb:24:in `call'"},{"id":8,"trace":"actionpack (5.0.3) lib/action_dispatch/middleware/request_id.rb:24:in `call'"},{"id":9,"trace":"rack (2.0.3) lib/rack/runtime.rb:22:in `call'"},{"id":10,"trace":"activesupport (5.0.3) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'"},{"id":11,"trace":"actionpack (5.0.3) lib/action_dispatch/middleware/executor.rb:12:in `call'"},{"id":12,"trace":"actionpack (5.0.3) lib/action_dispatch/middleware/static.rb:136:in `call'"},{"id":13,"trace":"rack (2.0.3) lib/rack/sendfile.rb:111:in `call'"},{"id":14,"trace":"rack-cors (0.4.1) lib/rack/cors.rb:81:in `call'"},{"id":15,"trace":"railties (5.0.3) lib/rails/engine.rb:522:in `call'"},{"id":16,"trace":"puma (3.8.2) lib/puma/configuration.rb:224:in `call'"},{"id":17,"trace":"puma (3.8.2) lib/puma/server.rb:600:in `handle_request'"},{"id":18,"trace":"puma (3.8.2) lib/puma/server.rb:435:in `process_client'"},{"id":19,"trace":"puma (3.8.2) lib/puma/server.rb:299:in `block in run'"},{"id":20,"trace":"puma (3.8.2) lib/puma/thread_pool.rb:120:in `block in spawn_thread'"}]}}