Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught (in promise) TypeError: failed to fetch #260

Open
Warren93 opened this issue Jun 2, 2022 · 3 comments
Open

Uncaught (in promise) TypeError: failed to fetch #260

Warren93 opened this issue Jun 2, 2022 · 3 comments

Comments

@Warren93
Copy link

Warren93 commented Jun 2, 2022

I am trying to run webgazer from an old portable Chromium version (61) on an offline computer (yes, I know it's an odd use case).

When I run the sample webgazer.setGazeListener code from https://webgazer.cs.brown.edu/ I get the error in the title. I am running this on a page served from a local Node.js server. The server doesn't use HTTPS by default, but I thought that might not matter since this is such an old version of Chromium (i.e. before various APIs started only working on secure origins).

I get a prompt to allow access to the webcam (an attached Logitech C920 since it's a desktop), which I allow, but the error still appears. Based on the code at the line number mentioned in the error stack trace (line 148496) it seems like there's an issue getting the stream from the webcam. But the webgazer face overlay canvas is created and I can see myself. However the setGazeListener does not run (doesn't print elapsed time as in example).

@Warren93
Copy link
Author

Warren93 commented Jun 2, 2022

Ah OK looks like it's failing to fetch a dependency, as the error implies. Which would make sense, being offline and all. And here I though the single giant webgazer.js file would somehow magically do everything on it's own...

So I guess now it's just a matter of somehow gathering all the things webgazer tries to fetch and then sneakerneting them onto the offline machine

@jeffhuang
Copy link
Contributor

Yes, it looks like the latest facemesh, which was updated to fix a crash, retrieves models from online. The older facemesh does not, and there's probably some way to get the models offline too. Would be nice if someone looked into it!

@jeffhuang
Copy link
Contributor

Same issue as #248

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

No branches or pull requests

2 participants