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

parsing of "_" in json-file (proto definitions)? #420

Open
andife opened this issue Jun 23, 2023 · 0 comments
Open

parsing of "_" in json-file (proto definitions)? #420

andife opened this issue Jun 23, 2023 · 0 comments

Comments

@andife
Copy link

andife commented Jun 23, 2023

A message containing an "_" results in the following error:

PS C:\Dev> ghz --insecure --call com.api_pre.PreToHost.ReqPre -D .\req4.json localhost:5001
Error creating message from data. Data: '{
"image_md": {
"value": "03fdc668605146839ee31"
}
}' Error: json: cannot unmarshal object into Go value of type string

req4.json
{
"image_md": {
"value": "03fdc668605146839ee31"
}
}

Command line arguments / config
ghz --insecure --call com.api_pre.PreToHost.ReqPre -D .\req4.json localhost:5001

Environment

  • OS: Windows10, powershell/cmd / gitbash
  • ghz: ghz --version => dev => installed yesterday using "go install github.com/bojand/ghz/cmd/ghz@latest"

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

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

1 participant