Skip to content

Improve Errors for Request Matching Failures #108

@akosyakov

Description

@akosyakov

Currently, when a request does not match a recorded interaction in the cassette, go-vcr simply reports a mismatch without providing detailed information about why the request failed to match. This makes debugging difficult, especially when subtle differences exist in headers, body content, or query parameters.

It would be helpful if the default matcher could provide better error messages, such as:

Which headers are missing, unexpected, or have different values
Differences in query parameters or their order
If the request body differs, highlight the difference

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions