Windows Server环境Httpie调用Veracode API时JSON配置错误求助
Hey there, let's break down what's going on here and get this issue fixed for you!
Root Cause
Looking at your error stack trace, the core problem is invalid JSON content in Httpie's configuration file. The error specifically points to \\ci fs.nas1.us2.experian.corp\CitrixUPM\Folders\C63639A\AppData\Roaming\httpie\config.json — this file is either empty, corrupted, or contains non-JSON formatted text, which makes Httpie fail when trying to load its settings.
Step-by-Step Fixes
Inspect the problematic config file
Navigate to the file path mentioned in the error and openconfig.json. Check if it’s empty, has random gibberish, or malformed JSON (like missing curly braces, trailing commas, or typos).Reset or repair the config file
- If the file is empty or unreadable: Simply delete it. Httpie will automatically generate a fresh, valid default configuration file the next time you run any Httpie command.
- If there’s malformed JSON: Manually edit it to valid JSON (the simplest valid config is just
{}) or delete the file entirely to let Httpie rebuild it from scratch.
Verify the fix
After fixing or deleting the config file, re-run your Veracode API command:http --auth-type=veracode_hmac "https://analysiscenter.veracode.com/api/5.0/getappinfo.do" "app_id=="%1 > getappinfo.xmlThe config-related error should now be resolved.
Quick Extra Check
While you’re at it, make sure %1 in your command is being replaced with a valid Veracode app ID when you execute it — an invalid app ID would trigger a separate API error, but let’s get the config issue sorted first!
内容的提问来源于stack exchange,提问作者Kaustav Roy

