Skip to content

Startree.cloud connection issue #38

@khalidDaoud

Description

@khalidDaoud

I'm trying to connect to startree cloud hosted Pinot, my code is below

	extraHeaders := map[string]string{
		"Authorization": cfg.Authorization, //cfg.Authorization
		"database":      cfg.Database, //cfg.Database
	}

	pinotConfig := pinot.ClientConfig{
		ExtraHTTPHeader:     extraHeaders,
		BrokerList:          []string{cfg.BrokerURL},
		HTTPTimeout:         cfg.Timeout * time.Millisecond,
		UseMultistageEngine: false,
	}

	client, err := pinot.NewWithConfig(&pinotConfig)
	if err != nil {
		return nil, fmt.Errorf("failed to create pinot client: %w", err)
	}

	return &QueryRepository{
		client: client,
		config: cfg,
	}, nil
}

i always get 403 "Caught exception to execute SQL query SELECT * FROM TableName LIMIT 10, Error: caught http exception when querying Pinot: 404 Not Found"

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