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

   ### Feature Request / Improvement
   
   According to Iceberg's [Rest catalog 
spec](https://github.com/apache/iceberg/blob/b428fbc59bd1579f4dc918a5cd48fce667d81ce1/open-api/rest-catalog-open-api.yaml#L1831-L1845),
 the header X-Iceberg-Access-Delegation helps to let the server know that 
client supports delegated access and is **_optional_**.
   
   Our catalog is setup **without** Access Delegation and thus I am facing the 
following error when trying to load a table. 
   
   `from pyiceberg.catalog import load_catalog
   
   catalog = load_catalog(
       'default',
       type='rest',
       prefix='prefix',
       uri='iceberg url'
   )
   
   
   print(catalog.list_tables('namespace')) # works. I get the tables in the 
namespace `
   
   But when I try to load a particular table 
   
   `catalog.load_table("namespace.table_name")`
   
   I face:
   
   `ServerError: NotSupportedException: Doesn't support credential vending, 
please add credential-provider-type to the catalog configurations`.
   
   This is because the header of the GET request looks like this:
   
   GET /iceberg/v1/config HTTP/1.1
   Host: --host--
   User-Agent: PyIceberg/0.9.0
   Accept-Encoding: gzip, deflate, br
   Accept: */*
   Connection: keep-alive
   Content-type: application/json
   X-Client-Version: 0.14.1
   **X-Iceberg-Access-Delegation: vended-credentials**
   
   **I am using PyIceberg 0.9.0**, and in the current state it is [not 
possible](https://github.com/apache/iceberg-python/blob/main/pyiceberg/catalog/rest.py#L553)
 to skip this header. 
   
   I can successfully able to **curl** to the same URL which the GET request is 
sent to, and I get the intended response.
   
   
   
   


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