Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webmock blocked external query #2

Closed
mokevnin opened this issue Dec 21, 2012 · 1 comment
Closed

webmock blocked external query #2

mokevnin opened this issue Dec 21, 2012 · 1 comment

Comments

@mokevnin
Copy link

Coveralls encountered an exception:
WebMock::NetConnectNotAllowedError
Real HTTP connections are disabled. Unregistered request: POST https://coveralls.io/api/v1/jobs with body '--610538

https://travis-ci.org/mokevnin/ipgeobase/builds/3770938

@nickmerwin
Copy link
Member

hi @mokevnin, our current workaround for this issue is to add "coveralls" to the URL allow list:

Webmock:

WebMock.disable_net_connect! allow: %w{coveralls.io}

VCR:

VCR.configure do |config|
  config.hook_into :webmock

  config.ignore_request do |request|
    request.uri =~ /coveralls\.io/
  end
end

Eventually we'll probably add these automatically if a Net::HTTP mocker is detected, in the meantime I'll add a note about this to our docs. Thank you for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@nickmerwin @mokevnin and others