Skip to content
This repository was archived by the owner on Jan 27, 2024. It is now read-only.
This repository was 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

@bing-deng

Description

@bing-deng
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/negroni@v1.0.0/negroni.go:46
github.com/urfave/negroni.HandlerFunc.ServeHTTP
        /Users/jerry/go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:29
github.com/urfave/negroni.middleware.ServeHTTP
        /Users/jerry/go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:38
github.com/urfave/negroni.(*Recovery).ServeHTTP
        /Users/jerry/go/pkg/mod/github.com/urfave/negroni@v1.0.0/recovery.go:193
github.com/urfave/negroni.middleware.ServeHTTP
        /Users/jerry/go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:38
github.com/urfave/negroni.(*Negroni).ServeHTTP
        /Users/jerry/go/pkg/mod/github.com/urfave/negroni@v1.0.0/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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions