Face-Detection-JavaScript icon indicating copy to clipboard operation
Face-Detection-JavaScript copied to clipboard

Fetch API cannot load and promise all typeerror

Open Samridhi-98 opened this issue 5 years ago • 3 comments

While using face-api.min.js and follwing the instruction,I landed up with following error of could not fetch the api and it requires http or https in the url to connect but file is store in my system.

face-recogination-api-issue

Samridhi-98 avatar Jul 18 '20 10:07 Samridhi-98

@Samridhi-98 have you found the solution?

TanveerHussain avatar Aug 25 '20 10:08 TanveerHussain

@Samridhi-98 have you found the solution?

No i didn't get any solution.

Samridhi-98 avatar Aug 26 '20 09:08 Samridhi-98

I found it, the problem is about the request of https, the issue was we are accessing the index file through direct from the folder like just double click the file.

SOLUTION

if you are using Visual Studio code just install the live server plugin/extension and right-click on the file run from live server, if not then you have to access the project through any localhost server like wamp/Xampp. like this: https://localhost:3000/project

😄

TanveerHussain avatar Aug 26 '20 09:08 TanveerHussain