Skip to content
This repository has been archived by the owner on Nov 8, 2021. It is now read-only.

System.net.http.httprequestexception #56

Open
vyomanaut opened this issue Feb 5, 2019 · 3 comments
Open

System.net.http.httprequestexception #56

vyomanaut opened this issue Feb 5, 2019 · 3 comments

Comments

@vyomanaut
Copy link

vyomanaut commented Feb 5, 2019

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

@acured
Copy link

acured commented Feb 13, 2019

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

@ibraheemhlaiyil
Copy link

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

@SamratAlamgir
Copy link

SamratAlamgir commented Mar 27, 2020

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants