ava-labs / ava-labs/avalanche-cli

Local Network : LocalAPIEndpoint could need to be modified

Open
#2,595 2 comments 0 reactions 1 assignee Claimed by @felipemadero View on GitHub
enhancement help wanted
Dominant language
Go
Stars
132
Forks
119
PR merge metrics
No merged PRs in 30d

Description

Hi,

When running a local network, the `avalanche blockchain upgrade apply testchain` does not work as intended.

By adding the flag `--log-level DEBUG` I could get a more detailed error:
`[02-05|01:50:52.499] INFO ux/output.go:43 Error: 404 Not Found: 404 page not found`

So I digged and re-compiled the avalanche-cli binary adding more logs to the code.
From what I found, it seems developers running a local network should change the following property in `./pkg/constants/constants.go`:
```
LocalAPIEndpoint = "http://127.0.0.1:9650"
```

with the correct port (`56269` in my case):
```
LocalAPIEndpoint = "http://127.0.0.1:56269"
```

I suggest we could add a custom flag to the `upgrade apply` command specifying the local api endpoint port?

Then it worked well and I moved on to the next error:
`Looks like this blockchain has not been deployed to this network yet.`

Maybe it's because of the other issue I opened -> https://github.com/ava-labs/avalanche-cli/issues/2594

Thank you for your help 🙏

**Operating System**
MacOS
Intel Core i7

Thank you,

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.