Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

94
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!