Giter VIP home page Giter VIP logo

Comments (9)

symisc avatar symisc commented on September 25, 2024

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.

NaturalDevCR avatar NaturalDevCR commented on September 25, 2024

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?

Iā€™m using the NPM package.

from faceio-npm.

NaturalDevCR avatar NaturalDevCR commented on September 25, 2024

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?

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.

symisc avatar symisc commented on September 25, 2024

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.

NaturalDevCR avatar NaturalDevCR commented on September 25, 2024

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

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.

symisc avatar symisc commented on September 25, 2024

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.

NaturalDevCR avatar NaturalDevCR commented on September 25, 2024

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

image

from faceio-npm.

symisc avatar symisc commented on September 25, 2024

from faceio-npm.

symisc avatar symisc commented on September 25, 2024

from faceio-npm.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.