LINUX.ORG.RU

Cannot find control with name: 'rest_solution'

 ,


0

1

Не прогружается приложение. В консоли браузера выдает вот такую ошибку:

Error: Cannot find control with name: 'rest_solution'

А в след за ней еще две таких:

ERROR TypeError: Cannot read property 'value' of undefined

ERROR TypeError: Cannot read property 'hasSelected' of undefined

Приложение построено на Angular+Rails+Postgresql. Не могу найти ошибку, что именно не так.

Вот как это примерно выглядит.


Ваша старая тема: Не прогружается страница с данными в приложении

Очевидно же, что проблема в:

{"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'"}]}}

Ошибка 404. Либо роут неверный, либо ресурс не найден. Я, конечно, не эксперт, но url выглядит подозрительно /daily_report/20\ - самый последний символ \, кажется, лишний. Смотрите как формируется данный url на фронте.

Незачем на каждую тему создавать новый аккаунт.

neversleep ★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.