Initially when a workflow was running I was getting an error like this:
================================================================================
An HTTP request has been made that VCR does not know how to handle:
GET https://chromedriver.storage.googleapis.com/LATEST_RELEASE_106.0.5249
And then I added config.ignore_hosts('chromedriver.storage.googleapis.com') in my VCR.
But now I am getting an error I can not seem to resolve, i.e
Selenium::WebDriver::Error::UnknownError:
unknown error: net::ERR_NAME_NOT_RESOLVED
(Session info: headless chrome=106.0.5249.91)
Related
I'm getting the below error when trying to run migrations locally. But it only happens sometimes, so I'm trying to understand what might cause it.
Full error:
rake aborted!
PG::ConnectionBad: could not fork new process for connection: Resource temporarily unavailable
could not fork new process for connection: Resource temporarily unavailable
E, [2017-04-22T10:09:26.381554 #17026] ERROR -- : fsevent: running worker failed: Resource temporarily unavailable
Otherwise, the rails console, and accessing the db directly through a client works fine.
I was pointed to another thread which recommended checking,
ulimit -Hn
unlimited
So my descriptor limit doesn't appear to be the issue.
Source: fork: retry: Resource temporarily unavailable
Update:
It consistently fails when the rails server (Puma) is running, but works when its not.
In a Rails application I am getting the following error message in the Safari console:
Failed to load resource: the server responded with a status of 404 (Not Found)
for the interact.min.js.map file. However, this only occurs in the Safari browser console. Although it is included in all logging in my local development environment for Rails.
Any ideas as to why this is being displayed. I have version 1.2.8.
Recently, in development, I am seeing angular fail to find templates that are there, and the status code that it gives me is not a real status code.
Template files in my Angular app fail to render, and the browser seems to try again (server logs go berserk) until it settles and it looks just fine. I can't consistently reproduce the issue, and I can't seem to find any similar errors on SO etc with an HTTP status code of -1.
Console error:
Error: [$compile:tpload] Failed to load template: /assets/some_folder/template_file.html (HTTP status: -1 )
I am using Angular 1.5.7 through the Rails 4.1 asset pipeline if that helps. Browser is Chrome 56 on Ubuntu 16.04.
Since this afternoon, access to the backend of my spree shop is suddenly unavailable. When I try to visit any page in the backend (/admin/users, /admin/orders, etc) the page just loads for a long time, until it times out and I get the generic error page.
When I look into the logs I always see either :
Processing by Spree::Admin::OrdersController#index as HTML
Completed 500 Internal Server Error in 127259ms
** [Airbrake] Success: Net::HTTPOK
Errno::ETIMEDOUT (Connection timed out - connect(2)):
app/middleware/flash_session_cookie_middleware.rb:18:in `call'
or
Processing by Spree::Admin::OrdersController#index as HTML
Completed 500 Internal Server Error in 127520ms
** [Airbrake] Success: Net::HTTPOK
SocketError (getaddrinfo: Name or service not known):
app/middleware/flash_session_cookie_middleware.rb:17:in `call'
This started happening after the last deployment to production, which only changed images and stylesheets. I can't reproduce the error locally, despite having the same code and an exact copy of the production database.
I'm using Spree version 2.0.3
Run Spree::Config[:check_for_spree_alerts] = false in your console to fix this. You may also want to add this line to your initializers/spree.rb to ensure check_for_spree_alerts is not re-enabled in the future.
This is happening because the Spree Alerts website has been discontinued. See: https://github.com/spree/spree/pull/6516
To be specific, this is happening because when logging into the backend, Spree 2.0.x checks for any alerts from the Spree website here https://github.com/spree/spree/blob/2-0-stable/backend/app/controllers/spree/admin/base_controller.rb#L39 which then calls alert.rb:14 :
HTTParty.get('http://alerts.spreecommerce.com/alerts.json', query: params).parsed_response
At the moment, alerts.spreecommerce.com has been discontinued and is timing out, which explains the errors you're receiving.
The Spree Alerts code has been removed as of Spree 2.3, so you could also upgrade to that version to resolve this issue.
I've been struggling with this issue for a few days and can't figure out what's causing the problem. The test suite runs fine on TravisCI, and locally when I restart my computer. After doing something locally though, I keep getting the same error message:
Unable to load URL: http://localhost.dev:3001/en/users/sign_in because of error loading http://localhost.dev:3001/en/users/sign_in: Unknown error (Capybara::Webkit::InvalidResponseError)
Here is the full webkit-debug trace:
Using the default profile...
..........Finished "EnableLogging" with response "Success()"
Wrote response true ""
Received "Visit"
Started "Visit"
Load started
"Visit" started page load
Started request to "http://localhost.dev:3001/en/users/sign_in"
Finished "Visit" with response "Success()"
Received 0 from "http://localhost.dev:3001/en/users/sign_in"
Page finished with false
Load finished
Page load from command finished
Wrote response false "{"class":"InvalidResponseError","message":"Unable to load URL: http://localhost.dev:3001/en/users/sign_in because of error loading http://localhost.dev:3001/en/users/sign_in: Unknown error"}"
F-Received "Reset"
Started "Reset"
undefined|0|SECURITY_ERR: DOM Exception 18: An attempt was made to break through the security policy of the user agent.
Finished "Reset" with response "Success()"
Wrote response true ""
Received "FindXpath"
Started "FindXpath"
Finished "FindXpath" with response "Success()"
Wrote response true ""
..........F--------
(::) failed steps (::)
Unable to load URL: http://localhost.dev:3001/en/users/sign_in because of error loading http://localhost.dev:3001/en/users/sign_in: Unknown error (Capybara::Webkit::InvalidResponseError)
This comes up anywhere in the app that I try to visit a path. From what I understand, the "Unknown error" is from qt, not capybara-webkit, but I'm not quite sure who would be best to ask. I am using DNSmasq for subdomains and we have multiple languages so localhost:3000 is redirected to www.localhost.dev:3000/en.
Current versions of things:
capybara 2.4.1
capybara-webkit 1.1.0
cucumber 1.3.14
cucumber-rails 1.4.0
pg 0.7.1
rails 4.0.0
ruby 2.1.2
dnsmasq 2.71
postgresql 9.3.5
qt 4.8.6 OSX - Mavericks 10.9.4
Edit 1: Also posted on the capybara-webkit repo: https://github.com/thoughtbot/capybara-webkit/issues/667
Edit 2: Here is the test log file: https://gist.github.com/GolfyMcG/060053eba51a9ba69722
As I posted in the related Github issue, I found the solution here:
https://apple.stackexchange.com/questions/26616/dns-not-resolving-on-mac-os
Had nothing to do with Capybara-webkit and everything to do with how I had my ElasticSearch instance spinning up with testing.