Skip to content

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

Description

@AlexsJones

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions