Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

96
Vistas
Issue in the app that combines Google Cloud Vision and Algolia

An interesting configuration of Google Cloud Vision (OCR) and Algolia.

  1. A user takes a picture of an object with some text on it, the app sends it to Google Cloud Vision for OCR through the Express backend.
  2. Google Cloud Vision returns a JSON payload with the recognized text, which the backend sends to Algolia as a search query.
  3. Algolia returns a matching record, and the backend returns it to show on the front-end to a user.

But there's a problem: when started, the app throws an error:

Uncaught (in promise) SyntaxError: Unexpected token < in JSON at 
position 0
Promise.then (async)
scanLabel @script.js:69

screenshot of the error in console

Anybody can analyze the 2 files: the front-end script.js and the back-end server.js, to tell what the problem is? Thanks a lot.

The app in question is here: https://cloudvision-plus-algolia-demo.web.app

the source code is here: https://github.com/algolia-samples/image-search-ocr-with-algolia-and-google-cloud-vision

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda