Skip to content

Log GetClient errors with proxy identity and connspec#40

Merged
riccardo-perotti merged 3 commits into
masterfrom
rp.ROP-9188.add-debug-logging-to-requester
Apr 17, 2026
Merged

Log GetClient errors with proxy identity and connspec#40
riccardo-perotti merged 3 commits into
masterfrom
rp.ROP-9188.add-debug-logging-to-requester

Conversation

@riccardo-perotti
Copy link
Copy Markdown
Contributor

Summary

  • GetClient() errors in MakeJSONRequest's service proxy loop were silently discarded due to := scoping, making it impossible to diagnose connection failures from logs
  • Now logs each failure with the proxy ident and connspec via Error.Printf
  • Propagates the last GetClient error to the outer err so the "not found" message includes the actual cause instead of %!s(<nil>)

Context

This is a diagnostic change to help root-cause a production incident in intapi-go where all requests returned 401 with "Request failed: main.User.login not found: %!s(<nil>)". The actual tls.Dial error was being swallowed.

Jira Tickets

https://gudtech.atlassian.net/browse/ROP-9188

🤖 Generated with Claude Code

riccardo-perotti and others added 3 commits April 17, 2026 09:23
Errors from GetClient() in the service proxy loop were silently
discarded due to := scoping, causing 'not found: %!s(<nil>)' in
error messages with no diagnostic information. Now logs each failure
with the proxy ident and connspec, and propagates the last error to
the outer scope so the 'not found' message includes the actual cause.

JiraID: ROP-9188
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The CircleCI config was using Go 1.10.3 and dep (both long deprecated)
and the deploy key was no longer valid. Replace with a GitHub Actions
workflow using Go 1.26 that runs go build and go vet.

Tests are omitted from CI as they require live SCAMP infrastructure
(/etc/SCAMP/soa.conf) that is not available in GitHub Actions runners.

JiraID: ROP-9188
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@riccardo-perotti riccardo-perotti merged commit 196cbdd into master Apr 17, 2026
1 check passed
@riccardo-perotti riccardo-perotti deleted the rp.ROP-9188.add-debug-logging-to-requester branch April 17, 2026 13:50
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

Successfully merging this pull request may close these issues.

2 participants