我正在使用Spring.Net.Social.Core来访问Web API。授权是正确的,但是当我尝试向服务器发送GET请求时......
RestOperations.GetForMessage<JsonValue>($"https://www.blablabla.com/{url}?tq={query}")
我有“此平台不支持操作”错误。 StackTrace如下:
at System.Net.SystemWebProxy.GetProxy(Uri destination)
at System.Net.ServicePointManager.ProxyAddressIfNecessary(Uri& address, IWebProxy proxy)
at System.Net.ServicePointManager.FindServicePoint(Uri address, IWebProxy proxy)
at System.Net.HttpWebRequest.get_ServicePoint()
at Spring.Http.Client.WebClientHttpRequestFactory.CreateRequest(Uri uri, HttpMethod method)
at Spring.Http.Client.Interceptor.InterceptingClientHttpRequestFactory.RequestCreation.Create()
at Spring.Http.Client.Interceptor.InterceptingClientHttpRequestFactory.RequestCreation.Create()
at Spring.Http.Client.Interceptor.InterceptingClientHttpRequestFactory.CreateRequest(Uri uri, HttpMethod method)
at Spring.Rest.Client.RestTemplate.DoExecute[T](Uri uri, HttpMethod method, IRequestCallback requestCallback, IResponseExtractor`1 responseExtractor)
at Spring.Rest.Client.RestTemplate.Execute[T](String url, HttpMethod method, IRequestCallback requestCallback, IResponseExtractor`1 responseExtractor, Object[] uriVariables)
at Spring.Rest.Client.RestTemplate.GetForMessage[T](String url, Object[] uriVariables)