You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnnil, connect.NewError(connect.CodeUnauthenticated, fmt.Errorf("No credentials present on request."))
250
-
}
251
-
252
-
conn, err:=s.connectionPool.Get(ctx, token)
253
-
iferr!=nil {
254
-
log.Log.WithError(err).Error("Failed to get connection to server.")
255
-
returnnil, connect.NewError(connect.CodeInternal, errors.New("Failed to establish connection to downstream services. If this issue persists, please contact Gitpod Support."))
returnnil, connect.NewError(connect.CodeUnimplemented, errors.New("gitpod.experimental.v1.TokensService.CreatePersonalAccessToken is not implemented"))
funcgetConnection(ctx context.Context, pool proxy.ServerConnectionPool) (protocol.APIInterface, error) {
59
59
token, err:=auth.TokenFromContext(ctx)
60
60
iferr!=nil {
61
61
returnnil, connect.NewError(connect.CodeUnauthenticated, fmt.Errorf("No credentials present on request."))
62
62
}
63
63
64
-
conn, err:=s.connectionPool.Get(ctx, token)
64
+
conn, err:=pool.Get(ctx, token)
65
65
iferr!=nil {
66
66
log.Log.WithError(err).Error("Failed to get connection to server.")
67
67
returnnil, connect.NewError(connect.CodeInternal, errors.New("Failed to establish connection to downstream services. If this issue persists, please contact Gitpod Support."))
0 commit comments