tcr icon indicating copy to clipboard operation
tcr copied to clipboard

Getting TCR::DirectionMismatchError after a successful run

Open agustin opened this issue 1 year ago • 0 comments

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!

agustin avatar Jun 04 '24 14:06 agustin