Skip to content

Request timeout in docker  #2648

Description

@Laxy317

Which package is this bug report for? If unsure which one to select, leave blank

@crawlee/playwright (PlaywrightCrawler)

Issue description

After I build a dockerfile with template Dockerfile, and I start project by ENTRYPOINT [ "node" ] in dockerfile, for running custom file enterpoint

It works well by runing tsx src/filename.ts or node dist/filename.js in local. But time out when run docker run my-build-image dist/filename.js

request: Request {
    id: 'rYNmq8qczeMRg0W',
    url: 'https://www.ali213.net/news/new/',
    loadedUrl: undefined,
    uniqueKey: 'https://www.ali213.net/news/new',
    method: 'GET',
    payload: undefined,
    noRetry: false,
    retryCount: 0,
    errorMessages: [
      'Error: requestHandler timed out after 130 seconds (rYNmq8qczeMRg0W).\n' +
        '    at Timeout._onTimeout (/home/myuser/node_modules/@apify/timeout/cjs/index.cjs:64:68)\n' +
        '    at listOnTimeout (node:internal/timers:581:17)\n' +
        '    at process.processTimers (node:internal/timers:519:7)'
    ],
    headers: {},
    userData: [Getter/Setter],
    handledAt: undefined
  },

Code sample

No response

Package version

3.11.2

Node.js version

v20.10.0

Operating system

No response

Apify platform

  • Tick me if you encountered this issue on the Apify platform

I have tested this on the next release

No response

Other context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    t-toolingIssues with this label are in the ownership of the tooling team.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions