Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] TypeError: Cannot read properties of undefined (reading 'length') #605

Open
dev4pear opened this issue Dec 13, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@dev4pear
Copy link

🐛 Bug Description

When using aptos.getAccountEventsByCreationNumber, unexpected error occurred.

Error fetching events: TypeError: Cannot read properties of undefined (reading 'length')
    at fc (C:\Users\Russell\Desktop\LiquidSwapBuyBot\node_modules\@aptos-labs\ts-sdk\dist\common\index.js:8:1412)
    at mc (C:\Users\Russell\Desktop\LiquidSwapBuyBot\node_modules\@aptos-labs\ts-sdk\dist\common\index.js:8:1340)
    at new exports.AptosApiError (C:\Users\Russell\Desktop\LiquidSwapBuyBot\node_modules\@aptos-labs\ts-sdk\dist\common\index.js:8:300)
    at Jr (C:\Users\Russell\Desktop\LiquidSwapBuyBot\node_modules\@aptos-labs\ts-sdk\dist\common\index.js:8:2803)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async h (C:\Users\Russell\Desktop\LiquidSwapBuyBot\node_modules\@aptos-labs\ts-sdk\dist\common\index.js:479:383)
    at async xr (C:\Users\Russell\Desktop\LiquidSwapBuyBot\node_modules\@aptos-labs\ts-sdk\dist\common\index.js:481:25050)
    at async Timeout.fetchAndProcessEvents [as _onTimeout] (C:\Users\Russell\Desktop\LiquidSwapBuyBot\index.js:19:20)

How to reproduce

https://github.com/dev4pear/LiquidSwapBuyBot

System information

System details:

  • Typescript SDK Version: @aptos-labs/ts-sdk^1.33.1
  • Platform: Node v18.20.5
@dev4pear dev4pear added the bug Something isn't working label Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant