Skip to content

sendRequest does not use custom proxies #2917

@tugkan

Description

@tugkan

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

@crawlee/basic (BasicCrawler)

Issue description

If you use the custom proxies like this:

{
   "proxy": {
      "useApifyProxy": false,
      "proxyUrls": [ "https://..." ]
   }
}

The proxyInfo object is not exposed to CrawlerContext. Therefore, sendRequest dispatches requests from naked IPs.

I am not quite sure if this is expected behavior or not. Just wanted to reach out.

Code sample

https://github.com/apify/crawlee/blob/764f99203627b6a44d2ee90d623b8b0e6ecbffb5/packages/basic-crawler/src/internals/basic-crawler.ts#L1419

Package version

3.13.1

Node.js version

22

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

Labels

bugSomething isn't working.t-toolingIssues with this label are in the ownership of the tooling team.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions