UmitU
Apify & Crawlee6mo ago
1 reply
Umit

Key-Value-Store Issue

Does anyone know how to use
writeStream
to save files into key-value-store?
It seems that it does work, however file do not show up when running on the Apify platform?

Also, saving the files usually with
await <kvs>.setValue('<file-key-here>,<Buffer>,<content-type>) 
;
Errors saying that the data
JSON.stringify()
returned undefined

This is despite the data being checked before it was passed on like so:

let data = JSON.stringify(body)

if(data){
await setValue(<key>, body , content-type.type
}


Any suggestions?
Was this page helpful?