Comments (6)
@ibrahimrabab could you please take a look?
from azure-sdk-for-java.
Hi @HassanBadir
Thanks for reaching out! Can you please provide the full endpoint URL with the SAS signature redacted? When I tried to reproduce this, it required me to enable permissions on service, container, and blob. Can you confirm that you are able to call download with only permission on the service level?
Also, can you provide a code snippet of how you made this work in Python with the wget? Thanks!
from azure-sdk-for-java.
Hi @HassanBadir. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.
from azure-sdk-for-java.
Hey @ibrahimrabab,
maybe i was misunderstood..
i create SAS on the Storage level, with permissions to "Object" in order to be able to download blobs.
and with this i can't create blobClient directly .. i must split the SAS from the blob, and pass them separately as mentioned above:
val blobClientBuilder = AzureBlobClientBuilder().endpoint(blobUrl).**sasToken(sasToken)**
from azure-sdk-for-java.
Hi @HassanBadir
Apologies on not responding back on this earlier. I tested out the sas token generation as you did above, and the download calls work just fine for me only using .endpoint()
. One thing I noticed in your code snippets is that you do not set .containerName()
and .blobName()
on the client builder. Are you doing that? If not, can you please set the container name and the blob name on the builder and try to make the download call again?
You should do the following:
BlobClientBuilder builder = new BlobClientBuilder()
.endpoint("https://<"accountname">.blob.core.windows.net/?sv=<"sastoken">")
.containerName("<"containerName">")
.blobName("<"blobname">");
And after building the BlobClientBuilder, try making the download calls again. Let us know if it works! If not, we can further investigate.
from azure-sdk-for-java.
Hi @HassanBadir. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.
from azure-sdk-for-java.
Related Issues (20)
- [OpenAI] Create a policy to route the AOAI and OAI API calls
- [BUG] Java OpenAI EmbeddingsOptions requires setUser be called with non-null value HOT 4
- [BUG] OpenAI beta6 using datasources - error: Unrecognized request argument supplied: dataSources
- [FEATURE REQ] eng, move SDK automation out of eng/mgmt folder HOT 1
- [BUG] CriteriaType ARRAY_CONTAINS does not support the 3rd parameter of the function in azure-spring-data-cosmos HOT 1
- [BUG] When prompt trigger the content filter, the serialized object with returned JSON is incorrect HOT 9
- [BUG] java.lang.IllegalStateException: block()/blockFirst()/blockLast() are blocking, which is not supported in thread reactor-http-epoll-1, when using uploadWithResponse method of BlobClient HOT 5
- Azure Key Vault- How to use AzureCliCredential first when using spring.cloud.azure.keyvault.secret.property-sources[0].endpoint HOT 33
- [OpenAI] Investigate the error message POJO that works for both AOAI and OAI HOT 2
- [BUG] Spring presents Bean selection issues when passwordless and resource-manager are used together. HOT 2
- Test Issue, please ignore HOT 1
- Test issue HOT 1
- Setup of JMS message listener invoker failed for destination 'queue-name' - trying to recover. Cause: Local transactions cannot span multiple top-level entities such as queue or topic. TrackingId:some_tracking_id, SystemTracker:gateway5, Timestamp:2024-02-29T21:57:11 [condition = amqp:not-allowed] HOT 6
- [BUG] java.lang.NoSuchMethodError: 'void com.azure.core.util.BinaryData.writeTo(java.nio.channels.WritableByteChannel)' HOT 1
- How to know the number of tokens returned when calling the GPT-35 streaming chat interface? HOT 3
- [QUERY] OAuth Logging noise HOT 1
- [BUG] Postgresql passwordless mode does not work with Flyway and server certificate verification HOT 2
- [Kafka V2]Avro/Json/ProtoBuf support
- Add support for non-String type expandable enums
- [OpenAI] Create a sample to show how to use the external tokenizer to compute tokens in Chat Completion Streaming API
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-sdk-for-java.