An interesting configuration of Google Cloud Vision (OCR) and Algolia.
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