Skip to content

[Bug]: apiRequestContext.fetch: The "listener" argument must be of type function. No such argument #36222

Open
@juneestl

Description

@juneestl

Version

1.52.0

Steps to reproduce

  1. Send below request:
    const verifyResponse = await page.request.fetch(verifyURL, { method: 'POST', data: { otp: 0000 } });
  2. Received error: TypeError: apiRequestContext.fetch: The "listener" argument must be of type function. Received an instance of Object

Expected behavior

I expect request to send successfully

Actual behavior

TypeError: apiRequestContext.fetch: The "listener" argument must be of type function. Received an instance of Object

Additional context

This only occurs in CI, local seems fine, I am using the 1.52.0 Jammy image
Using node 20

Environment

System:
    OS: Linux 6.2 Ubuntu 22.04.3 LTS 22.04.3 LTS (Jammy Jellyfish)
    Memory: (8) arm64
  Binaries:
    Node: 20.8.0 - ~/.nvm/versions/node/v20.8.0/bin/node
    npm: 10.1.0 - ~/.nvm/versions/node/v20.8.0/bin/npm
  npmPackages:
    playwright: ^1.52.0 => 1.52.0

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