Troubleshooting
Connection problems
Service unavailable
- Verify server is running and reachable
- Confirm
ADDRESSvalue orGRPCTESTIFY_ADDRESS - Check TLS settings if server requires TLS/mTLS
Timeout errors
Use a higher timeout:
bash
grpctestify test.gctf --timeout 60Test file problems
JSON parse errors
- Validate JSON in
REQUEST/RESPONSE/ERROR - Remove trailing commas
- Ensure section markers are correct
Missing required sections
ENDPOINTis required- At least one verification block is required:
RESPONSE,ERROR, orASSERTS
Assertion problems
Expression fails
- Start with simple checks (
.status == "ok") - Validate paths exist in actual response
- For metadata checks use built-ins like
@header()/@trailer()
Debugging commands
bash
# Verbose run
grpctestify test.gctf --verbose
# Execution preview
grpctestify test.gctf --dry-run --verbose
# Syntax check
grpctestify check test.gctf
# Inspect parsed structure
grpctestify inspect test.gctf --format jsonEnvironment variables
GRPCTESTIFY_ADDRESSGRPCTESTIFY_COMPRESSIONGRPCTESTIFY_TLS_CA_FILEGRPCTESTIFY_TLS_CERT_FILEGRPCTESTIFY_TLS_KEY_FILEGRPCTESTIFY_TLS_SERVER_NAME