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

ENTROPY_ENDPOINT=ws://localhost:9944 broken #275

Open
mixmix opened this issue Oct 31, 2024 · 4 comments
Open

ENTROPY_ENDPOINT=ws://localhost:9944 broken #275

mixmix opened this issue Oct 31, 2024 · 4 comments
Milestone

Comments

@mixmix
Copy link
Contributor

mixmix commented Oct 31, 2024

Gets Error:

API-WS: disconnected from ws://localhost:9944: 1006:: Abnormal Closure

This is when a local docker setup is running?
ws://127.0.0.1:9944 works

Idea: could add some checks to argParser and throw an error, or replace localhost => 127.0.0.1 ?

@mixmix
Copy link
Contributor Author

mixmix commented Nov 25, 2024

Need to check

  • why this isn't working
  • can we reproduce

@frankiebee frankiebee removed this from the Function Completeness milestone Dec 2, 2024
@mixmix
Copy link
Contributor Author

mixmix commented Dec 4, 2024

Steps to try reproduce (linux)

$ rm -rf ~/.config/entropy-cryptography/entropy-cli.json
$ yarn test:network:up
$ yarn build:global

$ entropy account create mixmix

$ entropy account balance mixmix
{"balance":0,"symbol":"BITS"}

$ entropy balance mixmix -e ws://junk.io:9944
2024-12-04 15:19:37          API-WS: disconnected from ws://junk.io:9944: 1006:: Abnormal Closure
getaddrinfo ENOTFOUND junk.io

$ entropy balance mixmix -e ws://localhost:9944
{"balance":0,"symbol":"BITS"}

$ entropy balance mixmix -e ws://127.0.0.1:9944
{"balance":0,"symbol":"BITS"}

$ ENTROPY_ENDPOINT=ws://localhost:9944 entropy balance mixmix
{"balance":0,"symbol":"BITS"}                                                      

$ ENTROPY_ENDPOINT=ws://127.0.0.1:9944 entropy balance mixmix
{"balance":0,"symbol":"BITS"}

I think from this I conclude that .... we cannot currently reproduce the bug

entropy-cli version v0.1.1 ... well a few commits beyond dev branch at commit 6d36cb3

@mixmix
Copy link
Contributor Author

mixmix commented Dec 4, 2024

@ameba23 I'm gonna put this REVIEW, and unless you or anyone else has feedback, we'll move this to DONE next week

@mixmix mixmix added this to the Function Completeness milestone Dec 9, 2024
@mixmix
Copy link
Contributor Author

mixmix commented Dec 9, 2024

Frankie points out that if there's no endpoint running you might get this error, and you should get a more helpful error.
Moving this issue into Usability milestone

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