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

Occasional RPC error when running offline #21

Open
erikarvstedt opened this issue Jun 25, 2023 · 1 comment
Open

Occasional RPC error when running offline #21

erikarvstedt opened this issue Jun 25, 2023 · 1 comment

Comments

@erikarvstedt
Copy link
Contributor

erikarvstedt commented Jun 25, 2023

When starting trustedcoin in an offline environment, it sometimes fails with:

error: bad response to getchaininfo (bad 'result' field: Parsing '{result:': object does not have member result), response was {"jsonrpc":"2.0","id":"cln:getchaininfo#15","error":{"code":20,"message":"failed to get tip: Get \"https://mempool.space/api/blocks/tip/height\": dial tcp: lookup mempool.space: no such host","data":null}}

This causes the clightning process to exit with a failure.

cc @seberm

@erikarvstedt erikarvstedt changed the title Occasional RPC error when operating offline Occasional RPC error when running offline Jun 25, 2023
@seberm
Copy link

seberm commented Jul 1, 2023

Hello,
The trustedcoin will try to get the current tip from all of the esploras. If all of the esploras are offline or trustedcoin can't reach them / DNS not working, it will return the error to CLN and CLN exits with a failure.

I think we could modify the code in a way it will loop over esploras "forever" until it succeeds or we get a shutdown from CLN.

What do you think should be a correct behavior in this case?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants