Skip to content

Getting TCR::DirectionMismatchError after a successful run #55

@agustin

Description

@agustin

Hi here! thanks for the work you put into this gem! I'm having a weird issue when replaying a cassette.

I'm using json format and hooking into these ports [25, 143, 465, 587, 993].

On the first run (when the cassette is generated) everything works perfectly, and when a re-run the test and in this case will load the cassette, I'm getting the error:

TCR::DirectionMismatchError: Expected to 'write' but next in recording was 'read'

On some simple cases I was able to edit the .json and the it works, but it defeat the purpose of the cassette, so I was wondering if at some point did you experience something similar, and in that case if you have any pointer in where to look for the issue or config.

Thanks a lot!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions