Ruby Gem - Cloudinary::Api.update() with ocr => adv_ocr is returning Generic Error
I'm trying to read the text off an uploaded PDF. I've turned off all eager transformation (no OCR during upload).
My understanding is that I could still call an "update" on the file with {ocr: 'adv_ocr' } and the response should include the extracted OCR. However, what I'm getting is a Server 500 error with "Generic Error" as the message.
I've also enabled "Unsigned add-on transformations allowed" by checking "OCR Text Detection and Extraction" under Settings > Security in the dashboard.
Cloudinary::Api.update("cache/development/lhppdzidetyb9gvhvnrp", {ocr: :adv_ocr})
# => Cloudinary::Api::GeneralError (General Error)
Here's the Restful client call:
RestClient.post "https://<api_key>:REDACTED@api.cloudinary.com/v1_1/<cloud>/resources/image/upload/cache/development/lhppdzidetyb9gvhvnrp", "ocr=adv_ocr", "Accept"=>"*/*", "Accept-Encoding"=>"gzip, deflate", "Content-Length"=>"11", "Content-Type"=>"application/x-www-form-urlencoded", "User-Agent"=>"CloudinaryRuby/1.9.1"
# => 500 InternalServerError | application/json 37 bytes
-
Hi @Tamer Salama
My apologies for the earlier message. I can see the General Error you are referring to in our logs. We are investigating the error.
**UPDATE**
We were able to reproduce the issue and it has been reported to our dev team. Once the issue is resolved, I will send an update.
0 -
@Tamer Salama
The issue looks to be resolved now from the example we've used, can you check if everything is working as expected on your end. We are looking forward to your update.
0
Post is closed for comments.
Comments
2 comments