Cognitive-Face-Windows
Cognitive-Face-Windows copied to clipboard
System.net.http.httprequestexception
This error pops up whenever I try to run this application. The debugger points to the line of code below the line where we create a new faceserviceclient object.
Projectoxford.face.contract.face[] faces = await faceserviceclient.detectasync(fstream,false,true,new face attribute......
With a accompanying message that says "Socket exception : an existing connection was forcibly closed by the remote host"
My internet is Preety fast
Hi @vyomanaut, It is difficult to judge what is wrong from a 'Socket exception'.
You may need double check your key and endpoint are valid, Endpoint looks like "https://[location].api.cognitive.microsoft.com/face/v1.0".
I'm getting this same exception, endpoint was created through the Azure portal and is a different format.
Getting the same exception even after setting endpoint like https://eastus.api.cognitive.microsoft.com/face/v1.0 Though I can invoke the API properly using Postman.