Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Cleos print error message from server when parse json failed #10059

Merged
merged 3 commits into from
Feb 18, 2021

Conversation

softprofe
Copy link
Contributor

@softprofe softprofe commented Feb 17, 2021

Change Description

Start 10059 description ......

EPE 436

In some case, the server can't give Json string to caller, it give a html message to show the possible reason why the request failed. but the do_http_call function still try to parse the string as json string and throw an json parse error message(it is not unstandable), now just print the original string from server so easy to understand what happned.

However, do_http_call is trying to parse string which is supposed to be handled by higher layer function, that is not usual.

End 10059 description ......

Change Type

Select ONE

  • Documentation
  • Stability bug fix
  • Other
  • Other - special case

Consensus Changes

  • Consensus Changes

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

programs/cleos/httpc.cpp Outdated Show resolved Hide resolved
programs/cleos/httpc.cpp Outdated Show resolved Hide resolved
Copy link
Contributor

@heifner heifner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update PR description with standard template

Copy link
Contributor

@heifner heifner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think the doc section in the PR description is for this PR

@softprofe
Copy link
Contributor Author

I don't think the doc section in the PR description is for this PR

Copied from another one, forget to delete the doc section. now it's gone.

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

Successfully merging this pull request may close these issues.

2 participants