Giter Club home page Giter Club logo

Comments (5)

Malump avatar Malump commented on September 23, 2024

I have the same error. Have you found the solution yet?

from ngx-scanner-qrcode.

GulharaKam avatar GulharaKam commented on September 23, 2024

Unfortunately, I have not found it yet.

from ngx-scanner-qrcode.

Malump avatar Malump commented on September 23, 2024

Hi, sorry about my English, I'm using a translator.

Apparently I managed to solve the problem in my code. I was calling action.start() after another action.start().

I have a method that is called when it manages to read the barcode and sends this code to the api, as soon as this method is called I execute action.stop(), so as not to read the barcode more than once.
When this method finds the item of this barcode in the database, it returns the id and the UI routes to the details screen, when it doesn't find the item, the api returns an error message and the UI has to release the camera for a new query.

My error was calling action.start() at the end of this method even though it found the item and routed to the details screen, so when I went back to the reader screen and tried to read other code it gave this error message, basically because I was calling action.start() after another action.start().

What I did was to call action.start() at the end of the method only if it returned an error at the endpoint and the user had to read the code again.

Is that clear?

image

from ngx-scanner-qrcode.

id1945 avatar id1945 commented on September 23, 2024

@GulharaKam Please give me a video demonstrating this bug.

from ngx-scanner-qrcode.

id1945 avatar id1945 commented on September 23, 2024

@Malump Please reproduce this error on your stackblitz. And provide me details about the above error generating steps.

from ngx-scanner-qrcode.

Related Issues (20)

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.