Contract worked well on devnet but now throwing error on testnet call
Welcome to Algorand!
For us to be able to help you, can you provide more context:
- copy-paste the full error: the cause of the error is usually specified at the end of the line starting with algosdk.error.AlgodHTTPError
- which API service are you using
- if you’re using a smart contract, and if yes, which smart contract version are you using
- minimum code that creates the issue (maybe in a later point, the above may be sufficient)
Note: always copy-paste code and error messages inside triple backquotes ``` for better formatting
@fabrice
thanks for helping out
here’s more data
i’m using the sandbox and trying to deploy to the testnet
plus i’m using version 5
raise error.AlgodHTTPError(e, code)
algosdk.error.AlgodHTTPError: transaction {_struct:{} Sig:[223 241 229 17 164 65 120 231 182 122 226 87 43 126 75 59 236 114 159 156 0 102 47 182 28 153 207 14 61 ...
Can you provide the text after the ...
, this is the most important part of the text.
Can you show ./sandbox status
?
@fabrice
ok
algosdk.error.AlgodHTTPError: transaction {_struct:{} Sig:[223 241 229 17 164 65 120 231 182 122 226 87 43 126 75 59 236 114 159 156 0 102 47 182 28 153 207 14 61 130 243 189 61 71 156 125 69 201 53 100 165 171 138 216 239 105 245 5 240 84 107 46 245 149 244 67 111 137 230 248 10 44 139 14] Msig:{_struct:{} Version:0 Threshold:0 Subsigs:[]} Lsig:{_struct:{} Logic:[] Sig:[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 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] Msig:{_struct:{} Version:0 Threshold:0 Subsigs:[]} Args:[]} Txn:{_struct:{} Type:appl Header:{_struct:{} Sender:OPSJXW3L5YCMFTVYZ7JB33UUOLUQUPHIWW3N3IFGWQ7KUZMI6ZCS25RSS4 Fee:{Raw:1000} FirstValid:257394 LastValid:258394 Note:[] GenesisID:testnet-v1.0 GenesisHash:JBR3KGFEWPEE5SAQ6IWU6EEBZMHXD4CZU6WCBXWGF57XBZIJHIRA Group:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA Lease:[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] RekeyTo:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY5HFKQ} KeyregTxnFields:{_struct:{} VotePK:[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] SelectionPK:[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] StateProofPK:[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 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] VoteFirst:0 VoteLast:0 VoteKeyDilution:0 Nonparticipation:false} PaymentTxnFields:{_struct:{} Receiver:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY5HFKQ Amount:{Raw:0} CloseRemainderTo:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY5HFKQ} AssetConfigTxnFields:{_struct:{} ConfigAsset:0 AssetParams:{_struct:{} Total:0 Decimals:0 DefaultFrozen:false UnitName: AssetName: URL: MetadataHash:[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] Manager:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY5HFKQ Reserve:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY5HFKQ Freeze:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY5HFKQ Clawback:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY5HFKQ}} AssetTransferTxnFields:{_struct:{} XferAsset:0 AssetAmount:0 AssetSender:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY5HFKQ AssetReceiver:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY5HFKQ AssetCloseTo:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY5HFKQ} AssetFreezeTxnFields:{_struct:{} FreezeAccount:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY5HFKQ FreezeAsset:0 AssetFrozen:false} ApplicationCallTxnFields:{_struct:{} ApplicationID:0 OnCompletion:NoOpOC ApplicationArgs:[[99 115 45 115 101 99 114 101 116 45 107 101 121] [115 228 155 219 107 238 4 194 206 184 207 210 29 238 148 114 233 10 60 232 181 182 221 160 166 180 62 170 101 136 246 69]] Accounts:[] ForeignApps:[] ForeignAssets:[] LocalStateSchema:{_struct:{} NumUint:4 NumByteSlice:0} GlobalStateSchema:{_struct:{} NumUint:0 NumByteSlice:3} ApprovalProgram:[5 32 4 1 0 4 2 38 4 9 112 114 105 110 99 105 112 97 108 8 105 110 116 101 114 101 115 116 8 101 110 100 95 116 105 109 101 7 112 101 110 97 108 116 121 49 24 35 18 64 1 64 49 25 34 18 64 1 8 49 25 35 18 64 0 29 49 25 129 5 18 64 0 19 49 25 36 18 64 0 10 49 25 37 18 64 0 1 0 35 67 34 67 35 67 54 26 0 128 5 115 116 97 114 116 18 64 0 166 54 26 0 128 11 97 100 100 95 115 97 118 105 110 103 115 18 64 0 83 54 26 0 128 8 119 105 116 104 100 114 97 119 18 64 0 1 0 50 7 49 0 42 98 13 64 0 35 177 34 178 16 49 0 34 136 0 251 178 8 49 0 178 7 179 49 0 42 104 49 0 43 104 49 0 40 104 49 0 41 104 34 67 177 34 178 16 49 0 35 136 0 216 178 8 49 0 178 7 179 66 255 218 50 7 49 22 34 9 56 0 42 98 12 68 49 22 34 9 56 0 40 49 22 34 9 56 0 40 98 49 22 34 9 56 8 8 102 49 22 34 9 56 0 41 49 22 34 9 56 8 136 0 151 49 22 34 9 56 0 41 98 8 102 34 67 51 1 8 50 0 13 68 51 2 0 42 55 2 26 1 23 102 51 2 0 43 55 2 26 2 23 102 51 2 0 40 51 1 8 102 51 2 0 41 51 1 8 136 0 94 102 34 67 54 26 0 128 5 65 115 115 101 116 18 64 0 16 54 26 0 128 4 117 115 101 114 18 64 0 1 0 34 67 177 36 178 16 50 10 178 20 35 178 18 54 48 0 178 17 179 34 67 128 11 67 83 95 65 85 84 72 95 75 69 89 54 26 0 103 128 17 67 83 95 87 65 76 76 69 84 95 65 68 68 82 69 83 83 54 26 1 103 34 67 53 0 37 137 53 2 53 1 52 1 40 98 52 1 41 98 8 50 0 9 137] ClearStateProgram:[5 129 1 67] ExtraProgramPages:0} CompactCertTxnFields:{_struct:{} CertRound:0 CertType:0 Cert:{_struct:{} SigCommit:[] SignedWeight:0 SigProofs:{_struct:{} Path:[] HashFactory:{_struct:{} HashType:sha512_256} TreeDepth:0} PartProofs:{_struct:{} Path:[] HashFactory:{_struct:{} HashType:sha512_256} TreeDepth:0} Reveals:map[]}}} AuthAddr:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY5HFKQ} invalid : application transaction not supported
for sandbox status
Last committed block: 264657
Time since last block: 8.8s
Sync Time: 1884.3s
Last consensus protocol: https://github.com/algorandfoundation/specs/tree/5615adc36bad610c7f165fa2967f4ecfa75125f0
Next consensus protocol: https://github.com/algorandfoundation/specs/tree/5615adc36bad610c7f165fa2967f4ecfa75125f0
Round for next consensus protocol: 264658
Next consensus protocol supported: true
Last Catchpoint:
Genesis ID: testnet-v1.0
Genesis hash: SGO1GKSzyE7IEPItTxCByw9x8FmnrCDexi9/cOUJOiI=
indexer - health
Indexer disabled for this configuration.
@fabrice please can you help check out
Your sandbox is not synced to the network.
The last committed block does not match the last round on testnet.algoexplorer.io and the Sync Time is not 0.
Normally, there is an automatic fast catchup system when you start the sandbox, to allow fast syncing. It seems to have failed.
Usual reason for failures:
- too slow SSD, HDD, or SD card → you must use a fast SSD
- too little RAM → 4-8GB is required
- algod is not up to date. You can reset everything with
git pull
followed by./sandbox clean
. - other issues: you need to read
sandbox.log
to see what happened
ok thanks, i use HDD, 6gb ram and I performed a git pull before spinning the sandbox
i’ll probably try an api
You have no chance with an HDD for TestNet or MainNet.
You can use a private network on sandbox or use an API service.