Home > OS >  Owncloud API calls to make mistakes
Owncloud API calls to make mistakes

Time:10-12

Programmers small white, recently with own cloud open source project, when invoking WebApi to the following error:
I was written in c #,
String res=await clients. GetStringAsync (" https://admin:admin@localhost:10000/owncloud.com/ocs/v1.php/apps/yourapp ");
Results run when there is an error, I hope god can help me solve
The user code untreated System.Net.Http.HttpRequestException
HResult=- 2146233088
Error Message=sends a request,
Source=mscorlib
StackTrace:
The System.Runtime.Com pilerServices. TaskAwaiter. ThrowForNonSuccess (Task Task)
The System.Runtime.Com pilerServices. TaskAwaiter. HandleNonSuccessAndDebuggerNotification (Task Task)
On the System.Runtime.Com pilerServices. TaskAwaiter ` 1. GetResult ()
On the ownCloud. Program. & lt; GetData> D__2. MoveNext (position) d: \ \ project ownCloud \ ownCloud \ Program cs: line number 52
InnerException: System.Net.WebException
HResult=- 2146233079
Message=underlying connection was closed: there was an error sending,
The Source=System
StackTrace:
In System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult)
In System.Net.Http.HttpClientHandler.GetResponseCallback (IAsyncResult ar)
InnerException: System. IO, IOException
HResult=- 2146232800
Message=packet format by accident, handshake failure,
The Source=System
StackTrace:
In System.Net.TlsStream.EndWrite (IAsyncResult asyncResult)
In System.Net.PooledStream.EndWrite (IAsyncResult asyncResult)
In System.Net.ConnectStream.WriteHeadersCallback (IAsyncResult ar)
InnerException:

  • Related