VCR::Errors::UnhandledHTTPRequestError:
Sentry Issue: SAMARBEID-FLAKY-SYSTEM-TESTS-34
VCR::Errors::UnhandledHTTPRequestError:
================================================================================
An HTTP request has been made that VCR does not know how to handle:
GET https://www.samarbeid.org/blog/rss.xml
VCR is currently using the following cassette:
- /builds/samarbeid-org/samarbeid/test/cassettes/rss_feed.yml
- :record => :none
- :match_requests_on => [:method, :uri]
Under the current configuration VCR can not find a suitable HTTP interaction
to replay and is prevented from recording new requests. There are a few ways
you can deal with this:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* You can use the :new_episodes record mode to allow VCR to
record this new request to the existing cassette [2].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [3].
* The current record mode (:none) does not allow requests to be recorded. You
can temporarily change the record mode to :once, delete the cassette file
and re-run your tests to allow the cassette to be recorded with this request [4].
* The cassette contains an HTTP interaction that matches this request,
but it has already been played back. If you wish to allow a single HTTP
interaction to be played back multiple times, set the `:allow_playback_repeats`
cassette option [5].
[1] https://www.relishapp.com/vcr/vcr/v/6-1-0/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/6-1-0/docs/record-modes/new-episodes
[3] https://www.relishapp.com/vcr/vcr/v/6-1-0/docs/configuration/ignore-request
[4] https://www.relishapp.com/vcr/vcr/v/6-1-0/docs/record-modes/none
[5] https://www.relishapp.com/vcr/vcr/v/6-1-0/docs/request-matching/playback-repeats
================================================================================
app/jobs/import_rss_feed_job.rb:6:in `perform'
URI.open(url) do |rss| # standard:disable Security/Open
app/jobs/application_job.rb:10:in `block in <class:ApplicationJob>'
block.call
test/jobs/import_rss_feed_job_test.rb:23:in `block (3 levels) in <class:ImportRssFeedJobTest>'
ImportRssFeedJob.perform_now
test/jobs/import_rss_feed_job_test.rb:22:in `block (2 levels) in <class:ImportRssFeedJobTest>'
assert_no_difference %w[News.count Events::FeatureReleasedEvent.count Notification.count] do
test/jobs/import_rss_feed_job_test.rb:19:in `block in <class:ImportRssFeedJobTest>'
VCR.use_cassette("rss_feed") do
...
(90 additional frame(s) were not displayed)