You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at DatasetClient._readAndParseFile (/home/msihadmin/Documents/repo/apify-pricelocal/node_modules/@apify/storage-local/src/resource_clients/dataset.js:268:21)
at async DatasetClient.listItems (/home/msihadmin/Documents/repo/apify-pricelocal/node_modules/@apify/storage-local/src/resource_clients/dataset.js:130:26)
at async Dataset.getData (/home/msihadmin/Documents/repo/apify-pricelocal/node_modules/apify/build/storages/dataset.js:223:20)
at async /home/msihadmin/Documents/repo/apify-pricelocal/exportDatasetToJSONFile.js:15:23
at async run (/home/msihadmin/Documents/repo/apify-pricelocal/node_modules/apify/build/actor.js:180:13)
The text was updated successfully, but these errors were encountered:
OS: ubuntu 20
Apify SDK: 1.1.1
await ResultsDataset.pushData(info);
so each data file should be written to disk before the next file is process?After my system crashed local the dataset folder contained files with 0 size.
This is causing this code to fail:
SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at DatasetClient._readAndParseFile (/home/msihadmin/Documents/repo/apify-pricelocal/node_modules/@apify/storage-local/src/resource_clients/dataset.js:268:21)
at async DatasetClient.listItems (/home/msihadmin/Documents/repo/apify-pricelocal/node_modules/@apify/storage-local/src/resource_clients/dataset.js:130:26)
at async Dataset.getData (/home/msihadmin/Documents/repo/apify-pricelocal/node_modules/apify/build/storages/dataset.js:223:20)
at async /home/msihadmin/Documents/repo/apify-pricelocal/exportDatasetToJSONFile.js:15:23
at async run (/home/msihadmin/Documents/repo/apify-pricelocal/node_modules/apify/build/actor.js:180:13)
The text was updated successfully, but these errors were encountered: