Skip to content

20260129 142259#164

Closed
mpragosa-te wants to merge 22 commits into
mainfrom
20260129-142259
Closed

20260129 142259#164
mpragosa-te wants to merge 22 commits into
mainfrom
20260129-142259

Conversation

@mpragosa-te

Copy link
Copy Markdown
Contributor

phpinhei-te and others added 22 commits February 19, 2025 17:24
feat: renames core module to client

feature: moves some functions to an internal module

feat: small comment changes

feature - fixes default server url

feature - updates go sdk version on user agent

feature - includes core module prior to v7 upgrade
* feature - includes core module prior to v7 upgrade

* feature - updates go sdk version on user agent

* feature - fixes default server url

* feat: small comment changes

* feature: moves some functions to an internal module

* feat: renames core module to client

* [GitHub Bot] Generated go SDK

---------

Co-authored-by: Phellippe Lima <phpinhei@thousandeyes.com>
Co-authored-by: API Team <api-team@thousandeyes.com>
Co-authored-by: API Team <api-team@thousandeyes.com>
Co-authored-by: API Team <api-team@thousandeyes.com>
Co-authored-by: API Team <api-team@thousandeyes.com>
Co-authored-by: API Team <api-team@thousandeyes.com>
Co-authored-by: API Team <api-team@thousandeyes.com>
* update the client log

* receive the responseBody and stateCode from the agent to format error message
Co-authored-by: API Team <api-team@thousandeyes.com>
Co-authored-by: API Team <api-team@thousandeyes.com>
Co-authored-by: API Team <api-team@thousandeyes.com>
Co-authored-by: API Team <api-team@thousandeyes.com>
Co-authored-by: API Team <api-team@thousandeyes.com>
Co-authored-by: API Team <api-team@thousandeyes.com>
Co-authored-by: API Team <api-team@thousandeyes.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 899d764217

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread client/client.go
Comment on lines +78 to +82
resp, err := c.cfg.HTTPClient.Do(request)

if c.cfg.Debug {
dump, err := httputil.DumpResponse(resp, true)
if err != nil {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Guard debug response dump against nil responses

In CallAPI the debug logging unconditionally calls httputil.DumpResponse(resp, true) (client/client.go) even when HTTPClient.Do returns an error without a response (e.g., DNS/TLS/network failure). In that case resp is nil and DumpResponse will panic, masking the underlying error whenever Debug is enabled. Consider checking resp != nil or only dumping when err == nil so error paths return cleanly instead of crashing.

Useful? React with 👍 / 👎.

@phpinhei-te phpinhei-te closed this Feb 9, 2026
@phpinhei-te
phpinhei-te deleted the 20260129-142259 branch February 9, 2026 13:42
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.

4 participants