-
-
Notifications
You must be signed in to change notification settings - Fork 62
Closed
Description
Issue #2 also happens in my project, which maybe causes also my error
. /cypress
folder gets created when I run the cypress ui. Usually it should take the files in ./spec/cypress
In addition to this none of the tests are working properly after the initial installation.
I tried to compare it with the example project - not successful.
my Tests fail with that error in the cypress UI
CypressError: cy.request() failed on:
http://localhost:51257/__cypress__/scenario
The response we received from your web server was:
> 500: Server Error
This was considered a failure because the status code was not '2xx' or '3xx'.
If you do not want status codes to cause failures pass the option: 'failOnStatusCode: false'
-----------------------------------------------------------
The request we sent was:
Method: POST
URL: http://localhost:51257/__cypress__/scenario
Headers: {
"user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/1.1.4 Chrome/53.0.2785.143 Electron/1.4.6 Safari/537.36",
"accept": "*/*",
"accept-encoding": "gzip, deflate",
"content-length": 20
}
Body: {"scenario":"basic"}
-----------------------------------------------------------
The response we got was:
Status: 500 - Server Error
Headers: {
"connection": "close",
"content-length": "77"
}
Body: An unhandled lowlevel error occurred. The application logs may have details.
And that logs the cypress log in the console.
#<NoMethodError: private method `load' called for nil:NilClass>
/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/cypress-on-rails-0.2.1/lib/cypress/middleware.rb:58:in `handle_scenario'
/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/cypress-on-rails-0.2.1/lib/cypress/middleware.rb:14:in `call'
/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/warden-1.2.7/lib/warden/manager.rb:36:in `block in call'
/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/warden-1.2.7/lib/warden/manager.rb:35:in `catch'
/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/warden-1.2.7/lib/warden/manager.rb:35:in `call'
/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/rack-2.0.3/lib/rack/etag.rb:25:in `call'
/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/rack-2.0.3/lib/rack/conditional_get.rb:38:in `call'
/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/rack-2.0.3/lib/rack/head.rb:12:in `call'
/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/rack-2.0.3/lib/rack/session/abstract/id.rb:232:in `context'
/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/rack-2.0.3/lib/rack/session/abstract/id.rb:226:in `call'
/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/actionpack-5.1.4/lib/action_dispatch/middleware/cookies.rb:613:in `call'
/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/actionpack-5.1.4/lib/action_dispatch/middleware/callbacks.rb:26:in `block in call'
/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:97:in `run_callbacks'
/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/actionpack-5.1.4/lib/action_dispatch/middleware/callbacks.rb:24:in `call'
/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/actionpack-5.1.4/lib/action_dispatch/middleware/executor.rb:12:in `call'
/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/actionpack-5.1.4/lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call'
/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/actionpack-5.1.4/lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/railties-5.1.4/lib/rails/rack/logger.rb:36:in `call_app'
/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/railties-5.1.4/lib/rails/rack/logger.rb:24:in `block in call'
/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/activesupport-5.1.4/lib/active_support/tagged_logging.rb:69:in `block in tagged'
/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/activesupport-5.1.4/lib/active_support/tagged_logging.rb:26:in `tagged'
/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/activesupport-5.1.4/lib/active_support/tagged_logging.rb:69:in `tagged'
/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/railties-5.1.4/lib/rails/rack/logger.rb:24:in `call'
/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/actionpack-5.1.4/lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/actionpack-5.1.4/lib/action_dispatch/middleware/request_id.rb:25:in `call'
/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/rack-2.0.3/lib/rack/method_override.rb:22:in `call'
/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/rack-2.0.3/lib/rack/runtime.rb:22:in `call'
/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/activesupport-5.1.4/lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'
/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/actionpack-5.1.4/lib/action_dispatch/middleware/executor.rb:12:in `call'
/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/actionpack-5.1.4/lib/action_dispatch/middleware/static.rb:125:in `call'
/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/rack-2.0.3/lib/rack/sendfile.rb:111:in `call'
/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/railties-5.1.4/lib/rails/engine.rb:522:in `call'
/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/rack-2.0.3/lib/rack/urlmap.rb:68:in `block in call'
/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/rack-2.0.3/lib/rack/urlmap.rb:53:in `each'
/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/rack-2.0.3/lib/rack/urlmap.rb:53:in `call'
/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/capybara-2.15.4/lib/capybara/server.rb:44:in `call'
/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/puma-3.10.0/lib/puma/configuration.rb:225:in `call'
/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/puma-3.10.0/lib/puma/server.rb:605:in `handle_request'
/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/puma-3.10.0/lib/puma/server.rb:437:in `process_client'
/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/puma-3.10.0/lib/puma/server.rb:301:in `block in run'
/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/puma-3.10.0/lib/puma/thread_pool.rb:120:in `call'
/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/puma-3.10.0/lib/puma/thread_pool.rb:120:in `block in spawn_thread'```
Metadata
Metadata
Assignees
Labels
No labels