nodejs.TypeError: request is not a function
at HttpProvider.requestSendByFetch (/opt/workspace/aelf-block-api/node_modules/aelf-sdk/dist/aelf.cjs.js:41995:14)
at HttpProvider.sendAsyncByFetch (/opt/workspace/aelf-block-api/node_modules/aelf-sdk/dist/aelf.cjs.js:42015:33)
at HttpProvider.sendAsync (/opt/workspace/aelf-block-api/node_modules/aelf-sdk/dist/aelf.cjs.js:42103:32)
at RequestManager.sendAsync (/opt/workspace/aelf-block-api/node_modules/aelf-sdk/dist/aelf.cjs.js:41875:28)
at ChainMethod.run (/opt/workspace/aelf-block-api/node_modules/aelf-sdk/dist/aelf.cjs.js:40028:34)
Steps To Reproduce
const aelf = new AElf(new AElf.providers.HttpProvider('https://aelf-public-node.aelf.io', 8000, {}, requestOptions));
async function main() {
const status = await aelf.chain.getChainStatus();
console.log('status: ', status);
}
main();
Description
Steps To Reproduce
Current Behavior
-
Expected Behavior
Environment