adamcodes716 opened a new issue, #1680:
URL: https://github.com/apache/iceberg-python/issues/1680

   ### Apache Iceberg version
   
   0.8.1 (latest release)
   
   ### Please describe the bug 🐞
   
   When trying to use this functionality, there is a ton of confusion around 
the internet.  A [similar 
question](https://github.com/apache/iceberg-python/issues/1524) was recently 
posted but the OP's good configuration was never posted.   I am posting my 
question here because of the confusion around the URI that is generated by the 
code.
   
   I have this code:
   
   ```
   warehouse_path = "s3://warehouse"
   
   try:
       catalog = load_catalog(
           "rest",
           **{
               "uri": "http://localhost:19120/iceberg";,  # Nessie Server URI
               "warehouse": warehouse_path,
               "s3.endpoint": "http://localhost:9000";,
               "s3.path-style-access": "true",
               "s3.access-key-id": "admin",
               "s3.secret-access-key": "password",
               "supportedAPIVersion": 2
           }
   ```
   
   
   Why is this url being generated?
   
   ```
     File "C:\Projects\Project\myenv\Lib\site-packages\requests\models.py", 
line 1024, in raise_for_status
       raise HTTPError(http_error_msg, response=self)
   requests.exceptions.HTTPError: 404 Client Error: Not Found for url: 
http://localhost:19120/iceberg/v1/config?warehouse=s3%3A%2F%2Fwarehouse
   ```
   
   the /api/v2/config url works fine:
   
   ```
   {
     "defaultBranch" : "main",
     "minSupportedApiVersion" : 1,
     "maxSupportedApiVersion" : 2,
     "actualApiVersion" : 2,
     "specVersion" : "2.1.0",
     "noAncestorHash" : 
"2e1cfa82b035c26cbbbdae632cea070514eb8b773f616aaeaf668e2f0be8f10d",
     "repositoryCreationTimestamp" : "2025-02-18T15:47:13.045523855Z",
     "oldestPossibleCommitTimestamp" : "2025-02-18T15:47:13.045523855Z"
   }
   ```
   
   Like many others, I am a bit confused as to how this all ties toegether.
   
   ### Willingness to contribute
   
   - [ ] I can contribute a fix for this bug independently
   - [ ] I would be willing to contribute a fix for this bug with guidance from 
the Iceberg community
   - [ ] I cannot contribute a fix for this bug at this time


-- 
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.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

Reply via email to