Skip to content

SDK hangs if it encounters too many 403s from the Apify API #341

@tobice

Description

@tobice

Issue description

I have an Actor that tries to access all kinds of data in the Apify account, and for each request it uploads the result to the default Key-value store.

  • When I run the Actor with a token that has access to all the user data (all requests succeed), the Actor works fine (run).
  • When I run the Actor with a token that has no access at all (all requests fail), the actor gets stuck mid-run, and eventually times out (run). If I replace Apify SDK calls with Apify JS client calls, it also works fine.

More context on Slack.

Code sample

No response

Package version

Visible in the Actor build.

Node.js version

Visible in the Actor build.

Operating system

No response

Actor or run link

https://console.apify.com/actors/KxN6y6vxqedApRveq/source

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

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions