Skip to content

Socket error ECONNRESET when targeting webkit browser with Playwright #473

@fpaul-1A

Description

@fpaul-1A

Hello,

I've started to look into Kassette to provide mocks for our E2E tests using Playwright.
I managed to make it work quite easily and it fits perfectly our needs, thank you for that :)

I've noticed some issues when running in local on Webkit browser only (on windows, node18), working as expected of Chromium and Firefox.
I see the following error when it tries to intercept an https request

Socket error
Error: read ECONNRESET
    at TCP.onStreamRead (node:internal/stream_base_commons:217:20)

and then the proxy fails to respond to the call

I am not sure if the issue is caused by Kassette directly, however I don't see the error when not using a proxy-server
I've created a repository to reproduce this issue with a basic web page https://github.com/fpaul-1A/kassette-playground

Also, the error doesn't seem to happen on the CI with Ubuntu (I have other issues on Windows and Mac-OS though)
https://github.com/fpaul-1A/kassette-playground/actions/runs/4325102305

Thank you for your help

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