One node has an error during "symbol-bootstrap config --upgrade" due to a proxy problem.
After investigation, we found out that an error is occurring when accessing the following sites with the node-fetch module.
https://testnet.symbol.services
2021-11-08T05:53:08.551Z info Getting nodes information from https://testnet.symbol.services/nodes?limit=50
2021-11-08T05:55:19.098Z error Unknown error generating the configuration. error.text is not a function
2021-11-08T05:55:19.098Z error The target folder 'target' should be deleted!!!
TypeError: error.text is not a function
at Function.<anonymous> (/usr/local/lib/node_modules/symbol-bootstrap/node_modules/symbol-statistics-service-typescr
ipt-fetch-client/dist/runtime.js:270:38)
at Generator.next (<anonymous>)
at /usr/local/lib/node_modules/symbol-bootstrap/node_modules/symbol-statistics-service-typescript-fetch-client/dist/
runtime.js:21:71
at new Promise (<anonymous>)
at __awaiter (/usr/local/lib/node_modules/symbol-bootstrap/node_modules/symbol-statistics-service-typescript-fetch-c
lient/dist/runtime.js:17:12)
at Function.getErrorFromFetchResponse (/usr/local/lib/node_modules/symbol-bootstrap/node_modules/symbol-statistics-s
ervice-typescript-fetch-client/dist/runtime.js:267:16)
at RemoteNodeService.getPeerInfos (/usr/local/lib/node_modules/symbol-bootstrap/lib/service/RemoteNodeService.js:187
:105)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async ConfigService.generateNodes (/usr/local/lib/node_modules/symbol-bootstrap/lib/service/ConfigService.js:201:
31)
at async ConfigService.run (/usr/local/lib/node_modules/symbol-bootstrap/lib/service/ConfigService.js:112:13)
TypeError: error.text is not a function
Upgrading via proxy failed.
One node has an error during "symbol-bootstrap config --upgrade" due to a proxy problem.
After investigation, we found out that an error is occurring when accessing the following sites with the node-fetch module. https://testnet.symbol.services
Since node-fetch does not support proxy, it would be better to use node-fetch-with-proxy module. https://www.npmjs.com/package/node-fetch-with-proxy
What do you think?
Here's the error message at upgrading: