Hi Myron,
That's answer my first question. Does VCR handle status codes
differnently? No.
My vcr log for the problematic request looks like this:
[Cassette: 'credential_check/invalid_me'] Initialized with options:
{:record=>:once, :match_requests_on=>[:method, :uri], :allow_unused_http_interactions=>true, :serialize_with=>:yaml, :persist_with=>:file_system}
[webmock] Handling request: [get
https://abcd:X...@dj4paws.highrisehq.com/me.xml]
(disabled: false)
[Cassette: 'credential_check/invalid_me'] Initialized
HTTPInteractionList with request matchers [:method, :uri] and 0
interaction(s): { }
[webmock] Identified request type (recordable) for [get
https://abcd:X...@dj4paws.highrisehq.com/me.xml]
[webmock] Handling request: [get
https://abcd:X...@dj4paws.highrisehq.com/me.xml]
(disabled: false)
[webmock] Identified request type (recordable) for [get
https://abcd:X...@dj4paws.highrisehq.com/me.xml]
[webmock] Handling request: [get
https://abcd:X...@dj4paws.highrisehq.com/me.xml]
(disabled: false)
[webmock] Identified request type (recordable) for [get
https://abcd:X...@dj4paws.highrisehq.com/me.xml]
[webmock] Handling request: [get
https://abcd:X...@dj4paws.highrisehq.com/me.xml]
(disabled: false)
[webmock] Identified request type (recordable) for [get
https://abcd:X...@dj4paws.highrisehq.com/me.xml]
[webmock] Handling request: [get
https://abcd:X...@dj4paws.highrisehq.com/me.xml]
(disabled: false)
[webmock] Identified request type (recordable) for [get
https://abcd:X...@dj4paws.highrisehq.com/me.xml]
[webmock] Handling request: [get
https://abcd:X...@dj4paws.highrisehq.com/me.xml]
(disabled: false)
[webmock] Identified request type (recordable) for [get
https://abcd:X...@dj4paws.highrisehq.com/me.xml]
[webmock] Handling request: [get
https://abcd:X...@dj4paws.highrisehq.com/me.xml]
(disabled: false)
[webmock] Identified request type (recordable) for [get
https://abcd:X...@dj4paws.highrisehq.com/me.xml]
[webmock] Handling request: [get
https://abcd:X...@dj4paws.highrisehq.com/me.xml]
(disabled: false)
[webmock] Identified request type (recordable) for [get
https://abcd:X...@dj4paws.highrisehq.com/me.xml]
[webmock] Handling request: [get
https://abcd:X...@dj4paws.highrisehq.com/me.xml]
(disabled: false)
[webmock] Identified request type (recordable) for [get
https://abcd:X...@dj4paws.highrisehq.com/me.xml]
[webmock] Handling request: [get
https://abcd:X...@dj4paws.highrisehq.com/me.xml]
(disabled: false)
[webmock] Identified request type (recordable) for [get
https://abcd:X...@dj4paws.highrisehq.com/me.xml]
When I curl, I get this:
curl -g -v
https://abcd:X...@dj4paws.highrisehq.com/me.xml
< HTTP/1.1 401 Unauthorized
< Server: nginx
< Date: Fri, 08 Feb 2013 20:00:23 GMT
< Content-Type: text/html; charset=utf-8
< Content-Length: 27
< Connection: keep-alive
< Status: 401 Unauthorized
< X-Throttle-Max: 500
* Authentication problem. Ignoring this.
< WWW-Authenticate: Basic realm="Application"
< X-Throttle-Count: 1
< X-Throttle-Horizon: 2013-02-08T20:00:30Z
< X-Runtime: 8
< X-Request-Id: 5ac0ab7f-9778-4779-a846-02dcfd6a08b0
< Cache-Control: no-cache
< Strict-Transport-Security: max-age=31536000
<
HTTP Basic: Access denied.
* Connection #0 to host
dj4paws.highrisehq.com left intact
* Closing connection #0
* SSLv3, TLS alert, Client hello (1):
On Feb 8, 12:12 pm, Myron Marston <
myron.mars...@gmail.com> wrote:
> There's nothing in VCR that treats responses differently by status code,
> although you can certainly configure it to do so. It's next-to-impossible
> for us to guess what your problem is with the small amount of information
> you've given us.
>
> Can you come up with an reproducible example we can play with?
>
> You might also try VCR's debug logger option:
>
>
https://relishapp.com/vcr/vcr/v/2-4-0/docs/configuration/debug-logging
>
> That should give you insight into exactly what VCR is doing, and will
> hopefully give you a clue as to the puzzling behavior you're seeing.
>
> HTH,
> Myron
>
> On Fri, Feb 8, 2013 at 10:58 AM, Chris Kilmer
> <
christopherkil...@gmail.com>wrote: