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

[5.0 -> main] Improve cleos error messages #1738

Merged
merged 5 commits into from Oct 9, 2023
Merged

Conversation

heifner
Copy link
Member

@heifner heifner commented Oct 9, 2023

With the addition of #1137 different categories of plugins can be configured to different endpoints. Update cleos error message to provide a better suggestion when feature is not available at provided endpoint.

Example output:

./cleos -u http://127.0.0.1:8081 net peers
Error 3110004: Missing Net API Plugin
Ensure that you have eosio::net_api_plugin added to your node's configuration and enabled on the specified endpoint.
For example:
http-server-address   = http-category-address
http-category-address = net_ro,127.0.0.1:8081
http-category-address = net_rw,[::]:8083
Error Details:
Net API plugin is not enabled on specified endpoint

Also updated history_api_plugin error details:

./cleos -u http://127.0.0.1:8081 get transaction 13fccbfb5f484f23ea081c81ba3dc07cd1eb0ed13e084d5d9e26ddc8f9aa94d1
Error 3110003: Missing History API Plugin
The eosio::history_api_plugin has been removed. Verify endpoint simulates removed history_api_plugin or use a different option.
Error Details:
History API plugin is not enabled on specified endpoint

Merges release/5.0 into main including #1733

Resolves #1688

@heifner heifner added the OCI Work exclusive to OCI team label Oct 9, 2023
@heifner heifner merged commit 6bd77ce into main Oct 9, 2023
21 checks passed
@heifner heifner deleted the GH-1688-cleos-err-main branch October 9, 2023 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCI Work exclusive to OCI team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cleos error message missleading in 5.0
3 participants