Closed LeoLeon91 closed 7 years ago
I think the best way to debug this would be to:
If you can collect the server logs, it might reveal something.
If you started it via docker-compose
, you can just run:
$ docker logs dockercompose_openocr_1
otherwise you'll need to find the container id with docker ps
$ docker ps
$ docker logs <container-id>
Another approach might be to ask on the OkHttp stack overflow
This line looks suspect to me:
requestBodyString.append(new String(getBytesFromFile(uploadFile1)));
Closing due to inactivity. Doesn't look like an openocr issue
Hi, I installed openocr on Ubuntu on my laptop and tested the API with curl and it works perfect.
But I'm trying to create an android app which uploads file to openocr and gets back the text. But i'm getting this response from the server:
SERVER RESPONSE: Response{protocol=http/1.1, code=500, message=Internal Server Error, url=http://192.168.0.102:8080/ocr-file-upload}
Please can you help with this, I'm trying this from 3-4 day and I'm still not able to get it work.
I'm using okHttp library to make the request and following is my code:
Please can you help in finding an error in this code, or provide a better code for android. Thanks!