Skip to content
Advertisement

Azure Java SDK for blob – A request was made to load the default HttpClient provider but one could not be found on the classpath

Following https://docs.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-java?tabs=powershell get this error:

JavaScript

Advertisement

Answer

The error will occur when failing to find HttpClient. It seems not related to the code. Try to check if you follow the steps in the documentation.

I try the following code in App.java and it works well.

JavaScript

enter image description here

If deleting the credential(), it will return this error: ResourceNotFound The specified resource does not exist.

Access public blob without credential:

enter image description here

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement