Comments (9)
Hello,
fioErrCode
is the first object defined on fio.js
when you include the library via the FACEIO CDN. Are your integrating the library via CDN or using the NPM package?
from faceio-npm.
Hello,
fioErrCode
is the first object defined onfio.js
when you include the library via the FACEIO CDN. Are your integrating the library via CDN or using the NPM package?
Iām using the NPM package.
from faceio-npm.
Hello,
fioErrCode
is the first object defined onfio.js
when you include the library via the FACEIO CDN. Are your integrating the library via CDN or using the NPM package?
So... how would it be implemented with the NPM package? I did check all the Vue and React articles mentioned in your site, and this is not explained at all.
from faceio-npm.
We are introducing the fetchAllErrorCodes()
method for the NPM Package for much better error logging experience. This update is scheduled to be released in 72 hours on the official package manager.
from faceio-npm.
We are introducing the
fetchAllErrorCodes()
method for the NPM Package for much better error logging experience. This update is scheduled to be released in 72 hours on the official package manager.
I'm getting a new error when enrolling an user:
TypeError: Assignment to constant variable.
at faceIO._fillParameters (fio.js:1:20508)
at fio.js:1:22052
at new Promise (<anonymous>)
at faceIO.enroll (fio.js:1:21829)
at faceio.enroll (index.js:42:34)
at Proxy.enrollNewUser (faceio-store.ts?t=1686248276642:49:20)
at Proxy.<anonymous> (pinia.mjs:1366:30)
at store.<computed> (pinia.mjs:916:40)
at onSubmit (NewEmployee.vue:138:13)
at callWithErrorHandling (runtime-core.esm-bundler.js:158:18)
This error isn't even handled with any errCode.
And as a result, I can't enroll users, it was working yesterday, actually this is the second time, enrollment stops working...
from faceio-npm.
Our official NPM package is now upgraded to fio.js V2.1 which implements Age Verification & Minors Access Prevention.
Your error handler now should look like the following with the introduction of the faceio.fetchAllErrorCodes()
method:
function handleError(errCode){
const fioErrCode = faceio.fetchAllErrorCodes();
switch (errCode) {
case fioErrCode.PERMISSION_REFUSED:
console.log("Access to the Camera stream was denied by the end user");
break;
// etc...
// Refer to the boilerplate at: https://gist.github.com/symisc/34203d2811a39f2a871373abc6dd1ce9
// for the list of all possible error codes.
}
Please update to the latest NPM package release to get access to the latest features.
from faceio-npm.
Our official NPM package is now upgraded to fio.js V2.1 which implements Age Verification & Minors Access Prevention.
Your error handler now should look like the following with the introduction of the
faceio.fetchAllErrorCodes()
method:function handleError(errCode){ const fioErrCode = faceio.fetchAllErrorCodes(); switch (errCode) { case fioErrCode.PERMISSION_REFUSED: console.log("Access to the Camera stream was denied by the end user"); break; // etc... // Refer to the boilerplate at: https://gist.github.com/symisc/34203d2811a39f2a871373abc6dd1ce9 // for the list of all possible error codes. }
Please update to the latest NPM package release to get access to the latest features.
I don't see a v2.1 version in your NPM package...
The last one was actually 2 hours ago, version 1.0.9
from faceio-npm.
from faceio-npm.
from faceio-npm.
Related Issues (11)
- Waiting timeout - Enrollment process is too slow HOT 3
- Enroll and Authentication reset state HOT 2
- De-branding HOT 2
- Error handling not working HOT 3
- Unclear Metrics HOT 1
- Livneness Detection & Face Anti-Spoofing should be included in starter plans HOT 1
- [FEATURE REQUEST] Choose between available cameras HOT 2
- No payload is beign saved when enrolling users HOT 2
- Uncaught SyntaxError: Identifier 'fioErrCode' has already been declared HOT 1
- ReferenceError: Can't find variable: document HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from faceio-npm.