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

[Feature]: Improve error handling feedback for API timeout ( analyze ) #606

Open
2 tasks done
AlexsJones opened this issue Jan 30, 2025 · 2 comments
Open
2 tasks done
Labels
bug Something isn't working feature New functionality. good first issue

Comments

@AlexsJones
Copy link
Member

Checklist

  • I've searched for similar issues and couldn't find anything matching
  • I've discussed this feature request in the K8sGPT Slack and got positive feedback

Is this feature request related to a problem?

No

Problem Description

 {"level":"info","ts":1738225278.1851523,"caller":"server/log.go:50","msg":"request failed. failed while ca │
│ lling AI provider openai: Post \"https://api.openai.com/v1/chat/completions\": unexpected EOF","duration_m │
│ s":15600,"method":"/schema.v1.ServerAnalyzerService/Analyze","request":"backend:\"openai\" explain:true an │
│ onymize:true language:\"english\" max_concurrency:10 output:\"json\"","remote_addr":"10.244.0.49:46788","s │
│ tatus_code":2}

This k8sgpt error code does not surface in the k8sgpt-operator

Solution Description

Surface the GRPC error code more directly in the operator

Benefits

It's clearer why you won't be receiving results if the AI API is unreachable

Potential Drawbacks

No response

Additional Information

No response

@AlexsJones AlexsJones added bug Something isn't working feature New functionality. good first issue labels Jan 30, 2025
@AlexsJones
Copy link
Member Author

AlexsJones commented Jan 30, 2025

Manager currently doesn't show any issues

│ manager Remote Address : 10.96.92.195:8080                                                                 │
│ manager 2025-01-30T08:21:18Z    INFO    k8sgpt-controller    K8sGPT address: 10.96.92.195:8080             │
│ manager                                                                                                    │
│ manager 2025-01-30T08:21:18Z    INFO    k8sgpt-controller    ending PreAnalysisStep                        │
│ manager 2025-01-30T08:21:18Z    INFO    k8sgpt-controller    starting AnalysisStep                         │
│```

@rabelmervin
Copy link

Hello @AlexsJones Can i contribute to this issue ? as an aspiring Devops This will be a good learning opportunity for me. Any guidance would be appreciated : )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feature New functionality. good first issue
Projects
None yet
Development

No branches or pull requests

2 participants