Skip to content

Conversation

@B4nan
Copy link
Member

@B4nan B4nan commented May 29, 2024

Crawlee 3.10+ now implements the getPublicUrl() too, returning local file URL pointing to the memory storage file.

This PR handles changes the SDK variant of getPublicUrl() to use that when outside of the apify platform instead of always returning the platform path (just because the SDK gets imported).

@github-actions github-actions bot added this to the 90th sprint - Tooling team milestone May 29, 2024
@github-actions github-actions bot added the t-tooling Issues with this label are in the ownership of the tooling team. label May 29, 2024
@B4nan B4nan added the adhoc Ad-hoc unplanned task added during the sprint. label May 29, 2024
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Pull Request Tookit has failed!

Pull request is neither linked to an issue or epic nor labeled as adhoc!

@B4nan B4nan merged commit a4d80bb into master May 29, 2024
@B4nan B4nan deleted the improve-kvs-public-url branch May 29, 2024 17:19
barjin added a commit that referenced this pull request Sep 9, 2025
The original check from #302 was not sufficient. When the user passes
`forceCloud: true` to `KVS.open()`, the SDK instance points to a
platform-backed KVS, even if the script is run locally.

This PR proposes checking the runtime type of `KeyValueStore.client`. If
this is a client instance from `apify-client`, we're communicating with
the platform, regardless of the place of execution (Platform / locally).

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

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants