Skip to content

We need to print user friendly message when we pass invalid value for httpClientTimeout! #21

@UK-Sparkles

Description

@UK-Sparkles

./yc -c yc-agent.yaml -p 1138833 -tags "Timeout 0"

My Config File:

version: '1'
options:
    j: D:\SoftwareSetup\jdk8\jdk1.8.0_60
    k: ycrash@0fa10568-2ddf-****-****-************
    s: http://localhost:8080

   a: yCrash
   httpClientTimeout: 5
  • When I execute the yc-360 script, it displays the validation message as follows:
2025/08/26 15:48:31 decode config file path yc-agent.yaml failed: yaml: unmarshal errors:
  line 15: cannot unmarshal !!int `5` into time.Duration
  • Message is not clear

EXPECTED RESULT: We should print user friendly message like "Invalid value "5" for flag -httpClientTimeout. The value should include a time unit. Supported formats are: 2s, 2m."
NOTE: It needs to be fixed when we pass the httpClientTimeout in config file and also in yc-360 Script.

Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions