Skip to content

sdkserver.writeError errors seen in TUI when chatting withe agents. #9

Closed
@sangee2004

Description

@sangee2004

clio version v0.1.1

Steps to reproduce the problem

  1. Install clio
  2. Chat with K8s agent by asking it to list pods and then scale on of the existing deployments .
  3. Notice that the following error message appears in TUI
http: superfluous response.WriteHeader call from github.com/gptscript-ai/gptscript/pkg/sdkserver.writeError (run.go:141)

Note - This does not prevent any responses being presented to the user.

> scale nginx to 32024/07/23 10:56:59 http: superfluous response.WriteHeader call from github.com/gptscript-ai/gptscript/pkg/sdkserver.writeError (run.go:141)
> scale nginx to 3
> scale nginx to 3

    ┌───────────────────────────────────────────────────────────────────────────┐
    │ Call Arguments:                                                           │
    │                                                                           │
    │ exec {"command":"kubectl scale deployment nginx-deployment --replicas=3"} │
    └───────────────────────────────────────────────────────────────────────────┘
                                                                                 
  Running  kubectl scale deployment nginx-deployment --replicas=3                                                                                                                              

    ┌─────────────────────────────────────────┐
    │ deployment.apps/nginx-deployment scaled │
    └─────────────────────────────────────────┘
                                               
  The  nginx-deployment  has been successfully scaled to 3 replicas.                                                                                                                           
                                                                                                                                                                                               
  Would you like to verify the status of the pods or perform any other actions?                                                                                                                

@K8s>  

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions