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

Program deployment works in local development node, but executing program fails. #3054

Open
ronming1303 opened this issue Feb 4, 2024 · 0 comments
Labels
bug Incorrect or unexpected behavior

Comments

@ronming1303
Copy link

ronming1303 commented Feb 4, 2024

Hi Community,

I'm figuring out how to run the program test on the developer local environment. The tutorial I'm following with is https://developer.aleo.org/testnet/getting_started/deploy_execute

  1. I started a local develpement node in a terminal with cmd: snarkos start --nodisplay --dev 0,
    some logs pop out, I guess it already started, even though it said DEBUG: No connected peers...

  2. Under my program folder, I use cmd to deploy my Aleo program by snarkos developer deploy test_program.aleo --private-key APrivateKeyxxxxxxxxxxx --query "http://localhost:3030" --path "./build/" --broadcast "http://localhost:3030/testnet3/transaction/broadcast" --priority-fee 600000
    It shows Deployment at1hnhj35hk75q3ag42w75k3mr3gtgref9mcj9x739l9dp2flhzjczqcx8mt9 ('test_program.aleo') has been broadcast to http://localhost:3030/testnet3/transaction/broadcast.
    In the snarkOS log, it said DEBUG request{method=POST uri=/testnet3/transaction/broadcast version=HTTP/1.1}: finished processing request latency=23 ms status=200
    **So that I thought the program should deployed successfully. **

  3. However, when I want confirm that with curl http://localhost:3030/testnet3/transaction/at1hnhj35hk75q3ag42w75k3mr3gtgref9mcj9x739l9dp2flhzjczqcx8mt9. The response of the request is Something went wrong: Missing transaction for ID at1hnhj35hk75q3ag42w75k3mr3gtgref9mcj9x739l9dp2flhzjczqcx8mt9%.
    The log said ERROR request{method=GET uri=/testnet3/transaction/at1hnhj35hk75q3ag42w75k3mr3gtgref9mcj9x739l9dp2flhzjczqcx8mt9 version=HTTP/1.1}: response failed classification=Status code: 500 Internal Server Error latency=9 ms

  4. Also tried to executed the functions in deployed program, but the 500 Error always stops my request.

Anyone can suggest with that? Thanks in advance.

@ronming1303 ronming1303 added the bug Incorrect or unexpected behavior label Feb 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect or unexpected behavior
Projects
None yet
Development

No branches or pull requests

1 participant