Azure-docs: Unable to successfully send a transaction to deployed smart contract

Created on 6 Nov 2018  Â·  6Comments  Â·  Source: MicrosoftDocs/azure-docs

Following the tutorial above, i deployed a smart contract to a poa network on azure. Im also sending a signed transaction as well. following the same steps. However it would seem that the transaction i sent gets discarded every time. Heres why i believer so.
For one, the hash gotten back after the signed transaction is sent. I used this to obtain a transaction receipt, by attaching a geth node to the azure instance and running the following command eth.getTransactionHash(hash) . The result is always null.
Also i set my ide to break execution on uncaught exception and discovered after some minutes that web 3 throws the following error.
Exception has occurred: Error
Error: Transaction was not mined within750 seconds, please make sure your transaction was properly sent. Be aware that it might still be mined!
at /projectI/node_modules/web3-core-method/src/index.js:390:42
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:189:7).
My search on github and other issues suggests its a thing with the version of web3 1.0.0-beta36. Ive downgraded and tried as well. But im still stuck with this issue.

So im wondering what im doing wrong here. You could checkout the sample code from this post here https://ethereum.stackexchange.com/questions/61200/read-state-from-smart-contract-deployed-to-azure-proof-of-authority-ethereum-net?noredirect=1#comment74269_61200


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

assigned-to-author azure-blockchaisvc doc-bug in-progress triaged

All 6 comments

Thanks for the feedback! I have assigned the issue to the content author to evaluate and update as appropriate.

@oaks-view I contacted the product team owner for this template about your issue. He's out of town. For support, you can always post questions to the blockchain forum here: https://aka.ms/workbenchforum.

Pat

in-progress

Hi @oaks-view,

It sounds like the transaction is improperly formatted. Can you try deploying a contract using Remix on the POA network as a sanity test? You can find a guide here on how to programmatically submit transactions on the POA network:
https://docs.microsoft.com/en-us/azure/blockchain/templates/ethereum-poa-deployment#tutorials

As @PatAltimore mentioned, the best way to get help is to reach out to our forum.

Thanks,
Cody

hello @codyborn i am unable to connect to the network using remix, i get the following feedback from remix Not possible to connect to the Web3 provider. Make sure the provider is running and a connection is open (via IPC or RPC)

Turns out the issue for me had to do with the account i was using to sign the transaction. Im not really sure what was wrong with the account though. But i created a new one and tried it out following the same steps, and transaction went successfully.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mrdfuse picture mrdfuse  Â·  3Comments

bityob picture bityob  Â·  3Comments

ianpowell2017 picture ianpowell2017  Â·  3Comments

bdcoder2 picture bdcoder2  Â·  3Comments

behnam89 picture behnam89  Â·  3Comments