Cognitive-Face-Windows icon indicating copy to clipboard operation
Cognitive-Face-Windows copied to clipboard

System.net.http.httprequestexception

Open vyomanaut opened this issue 6 years ago • 3 comments

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

vyomanaut avatar Feb 05 '19 04:02 vyomanaut

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".

acured avatar Feb 13 '19 08:02 acured

I'm getting this same exception, endpoint was created through the Azure portal and is a different format.

ibraheemhlaiyil avatar Oct 12 '19 10:10 ibraheemhlaiyil

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.

SamratAlamgir avatar Mar 27 '20 12:03 SamratAlamgir