Azure java.net.UnknownHostException:无法解析主机 "example.core.windows.net.blob.core.windows.net":没有与主机名关联的地址
Azure java.net.UnknownHostException: Unable to resolve host "example.core.windows.net.blob.core.windows.net": No address associated with hostname
我正在尝试使用 Android 中的以下教程项目在 azure 中创建一个 blob。
https://github.com/Azure/azure-storage-android
我已经通过免费试用创建了自己的帐户,并使用创建的帐户名和访问密钥替换了 storageConnectionString。
public static final String storageConnectionString = "DefaultEndpointsProtocol=https;"
+ "AccountName=example.core.windows.net;"
+ "AccountKey=firstaccesskey";
但我遇到了以下异常:
java.net.UnknownHostException: Unable to resolve host "example.core.windows.net.blob.core.windows.net": No address associated with hostname
The server encountered an unknown failure:
Status code 500
我对 storageConnectionString 存疑。我写 storageConnectionString 的方式是固定的吗?
只需在连接字符串中使用 "account" 即可解决问题。 "blob.core.windows.net" 会被SDK自动追加。
我正在尝试使用 Android 中的以下教程项目在 azure 中创建一个 blob。
https://github.com/Azure/azure-storage-android
我已经通过免费试用创建了自己的帐户,并使用创建的帐户名和访问密钥替换了 storageConnectionString。
public static final String storageConnectionString = "DefaultEndpointsProtocol=https;"
+ "AccountName=example.core.windows.net;"
+ "AccountKey=firstaccesskey";
但我遇到了以下异常:
java.net.UnknownHostException: Unable to resolve host "example.core.windows.net.blob.core.windows.net": No address associated with hostname
The server encountered an unknown failure:
Status code 500
我对 storageConnectionString 存疑。我写 storageConnectionString 的方式是固定的吗?
只需在连接字符串中使用 "account" 即可解决问题。 "blob.core.windows.net" 会被SDK自动追加。