Skip to content
This repository has been archived by the owner on Jan 27, 2024. It is now read-only.

when call api [curl -XPOST http://localhost:3001/join/<room_name>]twirp error internal: unexpected HTTP status code 308 \"Permanent Redirect #11

Open
bing-deng opened this issue Aug 11, 2023 · 1 comment

Comments

@bing-deng
Copy link

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
@bing-deng bing-deng changed the title twirp error internal: unexpected HTTP status code 308 \"Permanent Redirect when call api [curl -XPOST http://localhost:3001/join/<room_name>]twirp error internal: unexpected HTTP status code 308 \"Permanent Redirect Aug 11, 2023
@davidzhao
Copy link
Contributor

Is this a valid LiveKit Cloud project? I think you are likely using a wrong URL

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants