Open djouallah opened 4 weeks ago
Hmm. I've tested this so far on AWS and GCS but not yet on Azure.
The underlying Rust crate is pretty well tested so I assume that Azure can work, and it's just a matter of validating the input correctly and documenting what needs to be passed.
I'm not quite sure the best way to debug this.
Do you know of any docs or examples in other libraries of connecting to fabric?
maybe I will answer my own question. using delta_rs which depends on object store crate
credential = ClientSecretCredential(
client_id =config.get("myvars", "appId"),
client_secret =config.get("myvars", "secret") ,
tenant_id =config.get("myvars", "tenantId")
)
token = credential.get_token("https://storage.azure.com/.default").token
storage_options= {"bearer_token": get_token(), "use_fabric_endpoint": "true"}
let me check again with the token approach
same error
GenericError Traceback (most recent call last)
Cell In[7], [line 2](vscode-notebook-cell:?execution_count=7&line=2)
[1](vscode-notebook-cell:?execution_count=7&line=1) stream = obs.list(store)
----> [2](vscode-notebook-cell:?execution_count=7&line=2) for list_result in stream:
[3](vscode-notebook-cell:?execution_count=7&line=3) print(list_result[0])
[4](vscode-notebook-cell:?execution_count=7&line=4) break
GenericError: Generic MicrosoftAzure error: Error performing list request: Client error with status 400 Bad Request: <?xml version="1.0" encoding="utf-8"?>
<Error>
<Code>BadRequest</Code>
<Message>Either WorkspaceId or ArtifactId are missing in the request</Message>
</Error>
using delta_rs which depends on object store crate
Ok, so if it works with delta_rs
, then there is some configuration that will work here, and we just have to figure out what it is and document it.
<Message>Either WorkspaceId or ArtifactId are missing in the request</Message>
Seems like that's a clue to what's not getting set correctly.
using this code
I am getting this error
i know the credential are fine, as they works with duckdb