You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
异常:=====================================
Unhandled exception. Aliyun.Acs.Core.Exceptions.ClientException: SDK.WebException : HttpWebRequest WebException occured, the request url is iot.cn-shenzhen.aliyuncs.com System.Net.WebException: The operation has timed out.
at System.Net.HttpWebRequest.GetResponse()
at Aliyun.Acs.Core.Http.HttpResponse.GetResponse(HttpRequest request, Nullable1 timeout) at Aliyun.Acs.Core.DefaultAcsClient.DoAction[T](AcsRequest1 request, Boolean autoRetry, Int32 maxRetryNumber, String regionId, AlibabaCloudCredentials credentials, Signer signer, Nullable1 format, List1 endpoints)
at Aliyun.Acs.Core.DefaultAcsClient.DoAction[T](AcsRequest1 request, Boolean autoRetry, Int32 maxRetryNumber, IClientProfile profile) at Aliyun.Acs.Core.DefaultAcsClient.DoAction[T](AcsRequest1 request)
at Aliyun.Acs.Core.DefaultAcsClient.GetAcsResponse[T](AcsRequest`1 request)
at ALI_IOT_SERVICE.IotCloudAPI.TestQueryProductList() in E:\D\C#\ALI_IOT_SERVICE\IotCloudAPI.cs:line 55
at ALI_IOT_SERVICE.Program.Main(String[] args) in E:\D\C#\ALI_IOT_SERVICE\Program.cs:line 46
The text was updated successfully, but these errors were encountered:
Iot SDK for .NET Samples!
SDK.WebException
HttpWebRequest WebException occured, the request url is iot.aliyuncs.com System.Net.WebException: The operation has timed out.
at System.Net.HttpWebRequest.GetResponse()
at Aliyun.Acs.Core.Http.HttpResponse.GetResponse(HttpRequest request, Nullable`1 timeout)
硬件环境:==========================================
Linux raspberrypi 5.4.72-v7l+ #1356 SMP Thu Oct 22 13:57:51 BST 2020 armv7l GNU/Linux
donet环境:=====================================
root@raspberrypi:/home/pi/ali_iot_service# dotnet --info
.NET SDK (反映任何 global.json):
Version: 5.0.101
Commit: d05174dc5a
运行时环境:=====================================
OS Name: raspbian
OS Version: 10
OS Platform: Linux
RID: linux-arm
Base Path: /root/dotnet/sdk/5.0.101/
Host (useful for support):
Version: 5.0.1
Commit: b02e13abab
.NET SDKs installed:
3.1.403 [/root/dotnet/sdk]
5.0.101 [/root/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 3.1.9 [/root/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.1 [/root/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.9 [/root/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.1 [/root/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET runtimes or SDKs:
https://aka.ms/dotnet-download
引用的SDK:aliyun-net-sdk-iot
代码:=====================================
public void TestQueryProductList()
{
异常:=====================================
Unhandled exception. Aliyun.Acs.Core.Exceptions.ClientException: SDK.WebException : HttpWebRequest WebException occured, the request url is iot.cn-shenzhen.aliyuncs.com System.Net.WebException: The operation has timed out.
at System.Net.HttpWebRequest.GetResponse()
at Aliyun.Acs.Core.Http.HttpResponse.GetResponse(HttpRequest request, Nullable
1 timeout) at Aliyun.Acs.Core.DefaultAcsClient.DoAction[T](AcsRequest
1 request, Boolean autoRetry, Int32 maxRetryNumber, String regionId, AlibabaCloudCredentials credentials, Signer signer, Nullable1 format, List
1 endpoints)at Aliyun.Acs.Core.DefaultAcsClient.DoAction[T](AcsRequest
1 request, Boolean autoRetry, Int32 maxRetryNumber, IClientProfile profile) at Aliyun.Acs.Core.DefaultAcsClient.DoAction[T](AcsRequest
1 request)at Aliyun.Acs.Core.DefaultAcsClient.GetAcsResponse[T](AcsRequest`1 request)
at ALI_IOT_SERVICE.IotCloudAPI.TestQueryProductList() in E:\D\C#\ALI_IOT_SERVICE\IotCloudAPI.cs:line 55
at ALI_IOT_SERVICE.Program.Main(String[] args) in E:\D\C#\ALI_IOT_SERVICE\Program.cs:line 46
The text was updated successfully, but these errors were encountered: