RangeError: Map maximum size exceeded when uploading large file to Apify key-value store
Pass the data as a ReadableStream instead of a fully materialized Buffer/string. Convert the file into a ReadableStream and hand that to Actor.setValue(); the reporter confirmed this works for almost any file size. The crash comes from the store materializing the whole payload in a Map-backed structure, which a st…
Problem outcome: unknown