Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: resp is nil when err is not nil #7

Merged
merged 1 commit into from
May 20, 2024
Merged

Conversation

obs-gh-ruoyuchen
Copy link
Collaborator

Description

When the config file does not exist, the req is invalid and resp is nil. Therefore, we cannot access resp.StatusCode.
TODO: We need to update the path of config file. In root.go, we use $HOME/.observe-agent.yaml as default path. In UI, we use /etc/observe-agent/observe-agent.yaml. We need to decide which one to use and update the other one. I do not change this path.

@obs-gh-ruoyuchen obs-gh-ruoyuchen merged commit 152cecb into main May 20, 2024
2 checks passed
@obs-gh-ruoyuchen obs-gh-ruoyuchen deleted the ruoyu/diagnose branch May 20, 2024 16:33
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