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
I am facing issues superagent crashing the typescript app.. Unable to catch error in try catch.
Error: Network request error. Received status 400: TransactionPool.Remember: txn dead: round 1742449 outside of 1741200--1742200
at Request.callback (node_modules/algosdk/node_modules/superagent/src/node/index.js:879:15)
at fn (node_modules/algosdk/node_modules/superagent/src/node/index.js:1130:18)
at IncomingMessage. (node_modules/algosdk/node_modules/superagent/src/node/parsers/image.js:8:5)
at IncomingMessage.emit (node:events:402:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1340:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
Or better upgrade to something tested by millions of people eg axios
Your environment
latest
Steps to reproduce
start app ts-node main.ts
wait till application crashes
Expected behaviour
App running
Actual behaviour
App crashes
The text was updated successfully, but these errors were encountered:
Yes, superagent has many drawbacks. However, I believe the error you are receiving is completely irrelevant.
Algorand transactions have a first valid and last valid round. If a transaction is submitted after its last valid round has passed, it's no longer valid. It looks like you generated and signed a transaction, then waited too long to submit it, so it's now invalid.
Subject of the issue
Please upgrade superagent library. Version 6 is deprecated. https://www.npmjs.com/package/superagent
I am facing issues superagent crashing the typescript app.. Unable to catch error in try catch.
Error: Network request error. Received status 400: TransactionPool.Remember: txn dead: round 1742449 outside of 1741200--1742200
at Request.callback (node_modules/algosdk/node_modules/superagent/src/node/index.js:879:15)
at fn (node_modules/algosdk/node_modules/superagent/src/node/index.js:1130:18)
at IncomingMessage. (node_modules/algosdk/node_modules/superagent/src/node/parsers/image.js:8:5)
at IncomingMessage.emit (node:events:402:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1340:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
Or better upgrade to something tested by millions of people eg axios
Your environment
latest
Steps to reproduce
Expected behaviour
App running
Actual behaviour
App crashes
The text was updated successfully, but these errors were encountered: