kitt
kitt copied to clipboard
when call api [curl -XPOST http://localhost:3001/join/<room_name>]twirp error internal: unexpected HTTP status code 308 \"Permanent Redirect
go run ./cmd/server/main.go --config config.yaml --gcp-credentials-path gcp-credentials.json (base) 0|08:25:04
2023-08-12T08:25:06.893+0900 INFO livegpt service/server.go:97 starting server {"port": 3001}
2023-08-12T08:25:12.293+0900 ERROR livegpt service/server.go:190 error listing rooms {"error": "twirp error internal: unexpected HTTP status code 308 \"Permanent Redirect\" received, Location=\"https://ct6zibde.livekit.cloud/twirp/livekit.RoomService/ListRooms\""}
github.com/livekit-examples/livegpt/pkg/service.(*LiveGPT).joinHandler
/Users/jerry/Documents/project/kitt/lkgpt-service/pkg/service/server.go:190
net/http.HandlerFunc.ServeHTTP
/opt/homebrew/Cellar/go/1.20.2/libexec/src/net/http/server.go:2122
net/http.(*ServeMux).ServeHTTP
/opt/homebrew/Cellar/go/1.20.2/libexec/src/net/http/server.go:2500
github.com/urfave/negroni.Wrap.func1
/Users/jerry/go/pkg/mod/github.com/urfave/[email protected]/negroni.go:46
github.com/urfave/negroni.HandlerFunc.ServeHTTP
/Users/jerry/go/pkg/mod/github.com/urfave/[email protected]/negroni.go:29
github.com/urfave/negroni.middleware.ServeHTTP
/Users/jerry/go/pkg/mod/github.com/urfave/[email protected]/negroni.go:38
github.com/urfave/negroni.(*Recovery).ServeHTTP
/Users/jerry/go/pkg/mod/github.com/urfave/[email protected]/recovery.go:193
github.com/urfave/negroni.middleware.ServeHTTP
/Users/jerry/go/pkg/mod/github.com/urfave/[email protected]/negroni.go:38
github.com/urfave/negroni.(*Negroni).ServeHTTP
/Users/jerry/go/pkg/mod/github.com/urfave/[email protected]/negroni.go:96
net/http.serverHandler.ServeHTTP
/opt/homebrew/Cellar/go/1.20.2/libexec/src/net/http/server.go:2936
net/http.(*conn).serve
/opt/homebrew/Cellar/go/1.20.2/libexec/src/net/http/server.go:1995