brownhci/WebGazer

Uncaught (in promise) TypeError: failed to fetch

Open

#260 opened on Jun 2, 2022

View on GitHub
 (3 comments) (0 reactions) (0 assignees)HTML (3,412 stars) (520 forks)batch import
help wanted

Description

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

Contributor guide

Uncaught (in promise) TypeError: failed to fetch · brownhci/WebGazer#260 | Good First Issue