-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
no RPC client is defined in offline mode REST API port 1317 #13695
Comments
@julienrbrt did we make any changes to the |
Fixed by modifying server/start.go Better re-assign Client by adding |
So, I have tried to reproduce, but it seems like it is a bug on your chain?
|
This is breaking our LCD too after upgrading from |
Below is the diff of
I don't see why having this change:
This causes the code afterwards does not receive the
(There is also and I think from both application logic point of view and backward compatibility point of view, the old behavior should be kept. Also, the fix should not be I tried adding BTW this is the first time I know that there is a |
OK my problem with |
To be honest, I am not certain why we don't have that in 0.45, 0.47 and main. For some reason, v0.46 does not have this change. |
Summary of Bug
I pumped my local chain's
go.mod
from version 0.45.9 to 0.45.10 and started a completely new chain locally. The chain ran fine, but when I tried to call any REST APIs, it always gave me the error:{"error":"no RPC client is defined in offline mode"}
When I use version 0.45.9, I can call the APIs just fine. It seems that the update to 0.45.10 has added some configurations that are required to enable REST APIs that I do not know about.
When I followed the Ignite tutorial and pumped the version to 0.45.10, strangely the scaffold project was still able to call REST APIs. Hence, I don't know what my local chain is missing here, since calling REST APIs with version 0.45.9 still works.
Version
Cosmos SDK 0.45.10
Tendermint 0.34.22
Steps to Reproduce
git clone https://github.com/oraichain/orai.git && git checkout upgrade-to-sdk-04510
docker-compose up -d orai
./scripts/setup_genesis.sh
oraid start
curl http://localhost:1317/node_info
you can checkout to the branch
upgrade-to-sdk-0459
and rebuild the binary inside the container to see the differenceTo rebuild the binary, call:
make build LEDGER_ENABLED=false BUILD_TAGS=muslc GOMOD_FLAGS= VERSION=0.41.0
The text was updated successfully, but these errors were encountered: