koii-network / ezsandbox

The best place to get started with all things decentralized
47 stars 21 forks source link

Lesson 3 Error - SimpleCrawlerTask.retrieveAndValidateFile is not a function #93

Closed eastmaels closed 2 months ago

eastmaels commented 2 months ago

Steps to replicate:

## How to Setup

1. Clone this repo
2. cd to Lesson 3, file-sharing after directory
    * example: cd Lesson 3/simple-crawler/after
4. Run `npm install`
5. Run `npm test`

The following error occurs:

...
Error in validate: TypeError: SimpleCrawlerTask.retrieveAndValidateFile is not a function
    at validateNode (/Users/east/workspace/koii/ezsandbox_orig/Lesson 3/simple-crawler/after/task/audit.js:7:32)
    at NamespaceWrapper.validateAndVoteOnNodes (/Users/east/workspace/koii/ezsandbox_orig/Lesson 3/simple-crawler/after/node_modules/@_koii/namespace-wrapper/index.js:683:27)
    at async Audit.auditTask (/Users/east/workspace/koii/ezsandbox_orig/Lesson 3/simple-crawler/after/task/audit.js:20:5)
    at async CoreLogic.auditTask (/Users/east/workspace/koii/ezsandbox_orig/Lesson 3/simple-crawler/after/coreLogic.js:16:5)
    at async executeTasks (/Users/east/workspace/koii/ezsandbox_orig/Lesson 3/simple-crawler/after/tests/unitTest.js:14:9)
...