shubham-tomar commented on issue #291: URL: https://github.com/apache/iceberg-go/issues/291#issuecomment-2670606069
> This is the issue that many people are running into. Is that endpoint wrong? This is what I get when I try to load_catalog, and I get a 404. Others apparently do not. In my case there was issue with my local nessie config, that weired thing **main%7Cs3%3A%2F%2Fwarehouse** is prefix which was being added to the uri because i was sending warehouse path and all which is not required below function implementation works for me ``` // config.URI := "http://localhost:19120" // workingBranch := "main" func LoadCatalog(ctx context.Context, client *groot.Client, workingBranch string, catalogName string, config types.CatalogConfig) (*rest.Catalog, error) { uri, _ := url.JoinPath(config.URI, "iceberg", workingBranch) iceCatalog, err := catalog.Load(ctx, catalogName, iceberg.Properties{ "uri": uri, "s3.region": "us-east-1", }) if err != nil { return nil, fmt.Errorf("failed to load catalog: %w", err) } restCatalog, ok := iceCatalog.(*rest.Catalog) if !ok { return nil, fmt.Errorf("expected *rest.Catalog, got %T", iceCatalog) } return restCatalog, nil } ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org