Hello, everyone.
I am a beginner at learning Algorand with PyTeal.
I have created a new default Algorand project, but I cannot deploy it to my localhost.
I would like to get help on this issue.
Welcome to Algorand!
The error message usually contain an explanation of the failure.
You need to scroll down a bit.
You can copy-paste the full error message in forum.
Do it inside triple backquote ```
like this:
```
error message
```
so that it displays like this:
error message
Thank you for your reply. This is full error message
(counter-PzDo1JkT) phoenix@ubuntu:~/Works/counter$ yarn run algob deploy
yarn run v1.22.17
$ /home/phoenix/Works/counter/node_modules/.bin/algob deploy
Sample script has started execution!
Deploying ASA: minimumASA
Error: Bad Request
at Request.callback (/home/phoenix/Works/counter/node_modules/superagent/src/node/index.js:879:15)
at fn (/home/phoenix/Works/counter/node_modules/superagent/src/node/index.js:1130:18)
at IncomingMessage.<anonymous> (/home/phoenix/Works/counter/node_modules/superagent/src/node/parsers/json.js:19:7)
at IncomingMessage.emit (node:events:402:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1343:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
status: 400,
response: <ref *1> Response {
_events: [Object: null prototype] {},
_eventsCount: 0,
_maxListeners: undefined,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 4,
_maxListeners: undefined,
socket: [Socket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [Socket],
_consuming: false,
_dumped: false,
req: [ClientRequest],
text: '{"message":"TransactionPool.Remember: transaction VNI5M2A47JC6DEBKSHXX2ZC5AC4ZLFXAH7WUNCD3RTCXLS5R6WJA: overspend (account WWYNX3TKQYVEREVSW6QQP3SXSFOCE3SKUSEIVJ7YAGUPEACNI5UGI4DZCE, data {_struct:{} Status:Offline MicroAlgos:{Raw:0} RewardsBase:0 RewardedMicroAlgos:{Raw:0} VoteID:[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] SelectionID:[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] VoteFirstValid:0 VoteLastValid:0 VoteKeyDilution:0 AssetParams:map[] Assets:map[] AuthAddr:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY5HFKQ AppLocalStates:map[] AppParams:map[] TotalAppSchema:{_struct:{} NumUint:0 NumByteSlice:0} TotalExtraAppPages:0}, tried to spend {230000})"}\n',
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 12,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
request: Request {
_events: [Object: null prototype],
_eventsCount: 1,
_maxListeners: undefined,
_enableHttp2: false,
_agent: false,
_formData: null,
method: 'POST',
url: 'http://localhost:4001/v2/transactions',
_header: [Object],
header: [Object],
writable: true,
_redirects: 0,
_maxRedirects: 5,
cookies: '',
qs: {},
_query: [],
qsRaw: [],
_redirectList: [],
_streamRequest: false,
_data: <Buffer 82 a3 73 69 67 c4 40 bd 66 1e e2 0e b9 d7 b5 37 21 4a 3e 9b dd 3b 1e 6b 94 30 ee b9 2a 97 e3 e2 e3 80 3f e8 19 cb d8 e0 17 5d b0 06 a1 ee 6f 44 1b 69 ... 182 more bytes>,
req: [ClientRequest],
protocol: 'http:',
host: 'localhost:4001',
_endCalled: true,
_callback: [Function (anonymous)],
_fullfilledPromise: [Promise],
res: [IncomingMessage],
_resBuffered: true,
response: [Circular *1],
called: true,
[Symbol(kCapture)]: false
},
req: ClientRequest {
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [Socket],
_header: 'POST /v2/transactions HTTP/1.1\r\n' +
'Host: localhost:4001\r\n' +
'Accept-Encoding: gzip, deflate\r\n' +
'X-Algo-API-Token: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\r\n' +
'Content-Type: application/x-binary\r\n' +
'Content-Length: 232\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v2/transactions',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'localhost',
protocol: 'http:',
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
text: '{"message":"TransactionPool.Remember: transaction VNI5M2A47JC6DEBKSHXX2ZC5AC4ZLFXAH7WUNCD3RTCXLS5R6WJA: overspend (account WWYNX3TKQYVEREVSW6QQP3SXSFOCE3SKUSEIVJ7YAGUPEACNI5UGI4DZCE, data {_struct:{} Status:Offline MicroAlgos:{Raw:0} RewardsBase:0 RewardedMicroAlgos:{Raw:0} VoteID:[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] SelectionID:[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] VoteFirstValid:0 VoteLastValid:0 VoteKeyDilution:0 AssetParams:map[] Assets:map[] AuthAddr:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY5HFKQ AppLocalStates:map[] AppParams:map[] TotalAppSchema:{_struct:{} NumUint:0 NumByteSlice:0} TotalExtraAppPages:0}, tried to spend {230000})"}\n',
body: {
message: 'TransactionPool.Remember: transaction VNI5M2A47JC6DEBKSHXX2ZC5AC4ZLFXAH7WUNCD3RTCXLS5R6WJA: overspend (account WWYNX3TKQYVEREVSW6QQP3SXSFOCE3SKUSEIVJ7YAGUPEACNI5UGI4DZCE, data {_struct:{} Status:Offline MicroAlgos:{Raw:0} RewardsBase:0 RewardedMicroAlgos:{Raw:0} VoteID:[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] SelectionID:[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] VoteFirstValid:0 VoteLastValid:0 VoteKeyDilution:0 AssetParams:map[] Assets:map[] AuthAddr:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY5HFKQ AppLocalStates:map[] AppParams:map[] TotalAppSchema:{_struct:{} NumUint:0 NumByteSlice:0} TotalExtraAppPages:0}, tried to spend {230000})'
},
files: undefined,
buffered: true,
headers: {
'access-control-allow-origin': '*',
'content-type': 'application/json; charset=UTF-8',
vary: 'Origin',
date: 'Mon, 20 Dec 2021 15:14:06 GMT',
'content-length': '716',
connection: 'close'
},
header: {
'access-control-allow-origin': '*',
'content-type': 'application/json; charset=UTF-8',
vary: 'Origin',
date: 'Mon, 20 Dec 2021 15:14:06 GMT',
'content-length': '716',
connection: 'close'
},
statusCode: 400,
status: 400,
statusType: 4,
info: false,
ok: false,
redirect: false,
clientError: true,
serverError: false,
error: Error: cannot POST /v2/transactions (400)
at Response.toError (/home/phoenix/Works/counter/node_modules/superagent/src/node/response.js:95:15)
at Response._setStatusProperties (/home/phoenix/Works/counter/node_modules/superagent/src/response-base.js:126:48)
at new Response (/home/phoenix/Works/counter/node_modules/superagent/src/node/response.js:41:8)
at Request._emitResponse (/home/phoenix/Works/counter/node_modules/superagent/src/node/index.js:928:20)
at fn (/home/phoenix/Works/counter/node_modules/superagent/src/node/index.js:1130:38)
at IncomingMessage.<anonymous> (/home/phoenix/Works/counter/node_modules/superagent/src/node/parsers/json.js:19:7)
at IncomingMessage.emit (node:events:402:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1343:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
status: 400,
text: '{"message":"TransactionPool.Remember: transaction VNI5M2A47JC6DEBKSHXX2ZC5AC4ZLFXAH7WUNCD3RTCXLS5R6WJA: overspend (account WWYNX3TKQYVEREVSW6QQP3SXSFOCE3SKUSEIVJ7YAGUPEACNI5UGI4DZCE, data {_struct:{} Status:Offline MicroAlgos:{Raw:0} RewardsBase:0 RewardedMicroAlgos:{Raw:0} VoteID:[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] SelectionID:[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] VoteFirstValid:0 VoteLastValid:0 VoteKeyDilution:0 AssetParams:map[] Assets:map[] AuthAddr:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY5HFKQ AppLocalStates:map[] AppParams:map[] TotalAppSchema:{_struct:{} NumUint:0 NumByteSlice:0} TotalExtraAppPages:0}, tried to spend {230000})"}\n',
method: 'POST',
path: '/v2/transactions'
},
created: false,
accepted: false,
noContent: false,
badRequest: true,
unauthorized: false,
notAcceptable: false,
forbidden: false,
notFound: false,
unprocessableEntity: false,
type: 'application/json',
charset: 'UTF-8',
links: {},
setEncoding: [Function: bound ],
redirects: [],
pipe: [Function (anonymous)],
[Symbol(kCapture)]: false
}
}
Error ABLDR410: status_code=400,
TransactionPool.Remember: transaction VNI5M2A47JC6DEBKSHXX2ZC5AC4ZLFXAH7WUNCD3RTCXLS5R6WJA: overspend (account WWYNX3TKQYVEREVSW6QQP3SXSFOCE3SKUSEIVJ7YAGUPEACNI5UGI4DZCE, data {_struct:{} Status:Offline MicroAlgos:{Raw:0} RewardsBase:0 RewardedMicroAlgos:{Raw:0} VoteID:[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] SelectionID:[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] VoteFirstValid:0 VoteLastValid:0 VoteKeyDilution:0 AssetParams:map[] Assets:map[] AuthAddr:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY5HFKQ AppLocalStates:map[] AppParams:map[] TotalAppSchema:{_struct:{} NumUint:0 NumByteSlice:0} TotalExtraAppPages:0}, tried to spend {230000})
context={"scriptPath":"scripts/0-sampleScript.js"}
For more info run algob with --show-stack-traces or add --help to display task-specific help.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
You can see the error at the end:
TransactionPool.Remember: transaction VNI5M2A47JC6DEBKSHXX2ZC5AC4ZLFXAH7WUNCD3RTCXLS5R6WJA: overspend (account WWYNX3TKQYVEREVSW6QQP3SXSFOCE3SKUSEIVJ7YAGUPEACNI5UGI4DZCE, data {_struct:{} Status:Offline MicroAlgos:{Raw:0} RewardsBase:0 RewardedMicroAlgos:{Raw:0} VoteID:[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] SelectionID:[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] VoteFirstValid:0 VoteLastValid:0 VoteKeyDilution:0 AssetParams:map[] Assets:map[] AuthAddr:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY5HFKQ AppLocalStates:map[] AppParams:map[] TotalAppSchema:{_struct:{} NumUint:0 NumByteSlice:0} TotalExtraAppPages:0}, tried to spend {230000})
Your account does not have enough Algos.
There are several possible reasons for that:
- You funded your account on Testnet (Algorand Account) but your node is not on Testnet (it is on MainNet or a private network)
- Your node is not synced (unlikely since it looks like you are using sandbox)
If you ran sandbox manually, you need to check the network you are using via:
./sandbox goal node status
If it’s a private network, you need to fund the account by moving Algos from one of the private network genesis accounts.
Do
./sandbox goal account list
then
./sandbox goal clerk send --from ONE_OF__THE_ACCOUNT_ABOVE --to WWYNX3TKQYVEREVSW6QQP3SXSFOCE3SKUSEIVJ7YAGUPEACNI5UGI4DZCE --amount 100000000
(not tested - you may need to tweak a bit the commands).
I have run your command ./sandbox goal node status
.
But I got this issue ERROR: No container found for algod_1
.
I would like you to help me again.
Thank you.
Which tutorial did you follow? Was it GitHub - scale-it/algo-builder: Framework to automate development of Algorand Assets and Smart Contracts. ?
How did you create the network?
Can you provide all the commands you typed as well as all the files you modifies?
In particular, can you provide algob.config.js
?
It looks like your sandbox is not running correctly, how did you start it in the first place? Do you have multiple sandbox?
Since this discussion may be too open ended, it may be better to ask help on Discord:
You still want to provide the answers to all the above questions for people to be able to help you on Discord.
If you do so, please write back the solution to your issue there as to help people in the future.
Thank you for your help.