IBM / snap-and-translate

Build a hybrid mobile app that can capture an image,recognize text and translate it using Tesseract OCR & Watson Language Translator
https://developer.ibm.com/patterns/snap-translate-using-tesseract-ocr-watson-language-translator/
Apache License 2.0
23 stars 22 forks source link

Error Code=3 #27

Closed erum007 closed 3 years ago

erum007 commented 3 years ago

I would really appreciate it of anyone can help me out. I followed the exact same steps as in this tutorial but I'm still getting an error in the Android app. I used Docker to deploy the server locally, and then used ngrok to convert the local API to a public web address. I also added the "/uploadpic" part in the SERVER_URL as specified in the instructions. I faced no error whatsoever in anything, and the app was built successfully and was installed and launched on my phone. However, as I opened it up, it was neither displaying properly nor functioning properly as it should. I tried to analyze the problem, and could only come up with two reasons:

  1. Node 8 is specified in the docker file, and because of that, whenever I deploy the image to the local server, it shows me that node 8 has reached end of life even though it still runs the server. Should I try using 12 and modifying the docker file?
  2. I have used a newer version of ngrok from the one in this tutorial. Should I downgrade it?
  3. This error is displayed whenever I upload an image so it can be a problem with installation of Cordova plugins. However, at the time of installation they are installed successfully.

I have no idea what else could be it. Could anyone tell me what could be going wrong? Regards.

Screenshot_2021-07-31-17-17-00-947_com ibm myocrtranslator