Skip to content

[Feature]Socket connect timeout should be confiugrable #5062

Description

@wispxjtu

I have set the the navigate timeout and default timeout to 3 min

page.setDefaultNavigationTimeout(180000); page.setDefaultTimeout(180000); let response = await page.goto(naviUrl, {timeout: 180000, waitUntil: "domcontentloaded"});
But I still see such error "page.goto: net::ERR_TIMED_OUT" after 30s

=========================== logs ===========================
navigating to "https://xxx", waiting until "domcontentloaded"

Note: use DEBUG=pw:api environment variable and rerun to capture Playwright logs.
at Connection.sendMessageToServer (/app/node_modules/playwright/lib/client/connection.js:69:15)
at Proxy. (/app/node_modules/playwright/lib/client/channelOwner.js:44:61)
at /app/node_modules/playwright/lib/client/frame.js:80:71
at Frame._wrapApiCall (/app/node_modules/playwright/lib/client/channelOwner.js:72:34)
at Frame.goto (/app/node_modules/playwright/lib/client/frame.js:78:21)
at /app/node_modules/playwright/lib/client/page.js:267:60
at Page._attributeToPage (/app/node_modules/playwright/lib/client/page.js:202:20)
at Page.goto (/app/node_modules/playwright/lib/client/page.js:267:21)
at Object. (/app/built/lib/crawl/crawl.js:254:47)
at Generator.next ()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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