Код: Выделить всё
Date: Wed, 04 Jun 2025 20:38:32 GMT
Server: Apache
X-LL-Request-Id: aECuyNDHz8BcYDvfmg9JCgAAATk
Content-Type: application/llsd+xml
Content-Length: 65859
Content-Location: slcap://InventoryAPIv3/category/1854a12a-d07f-bb17-a00c-82b739b05698/links
Location: slcap://InventoryAPIv3/category/1854a12a-d07f-bb17-a00c-82b739b05698/links
Vary: Accept,Accept-Encoding,X-Untrusted-Path,X-Untrusted-Query
Access-Control-Allow-Origin: *
Код: Выделить всё
System.ArgumentException
HResult=0x80070057
Message=Only 'http' and 'https' schemes are allowed.
Parameter name: value
Source=System.Net.Http
StackTrace:
at System.Net.Http.HttpRequestMessage.set_RequestUri(Uri value)
at System.Net.Http.HttpClientHandler.CreateResponseMessage(HttpWebResponse webResponse, HttpRequestMessage request)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
Код: Выделить всё
request.RequestUri = webResponse.ResponseUri
if (value != null && value.IsAbsoluteUri && !HttpUtilities.IsHttpUri(value))
{
throw new ArgumentException(SR.net_http_client_http_baseaddress_required, "value");
< /code>
Мой вопрос в том, как лучше всего смягчить это в .NET Framework? Кажется, это происходит только по запросам пут.
Подробнее здесь: https://stackoverflow.com/questions/796 ... mentexcept