When i'm trying to connect Abbyy Cloud OCR SDK to send the image to be processed by the API, i get the following error: "Temporary failure in name resolution".

http://GoldenReader:...MyPassword...@cloud.ocrsdk.com
application_id = CGI.escape("GoldenReader")
          password = CGI.escape("...MyPassword...")
          language = "PortugueseBrazilian"
          base_url = "http://#{application_id}:#{password}@cloud.ocrsdk.com"
          begin
            response = RestClient.post("#{base_url}/processImage?language=#{language}&exportFormat=txt", :upload => {
              :file => File.new(image, 'rb')
            })
          rescue RestClient::ExceptionWithResponse => e
            # Show processImage errors
            output_response_error(e.response)
            raise
          else
            # Get task id from response xml to check task status later
            xml_data = REXML::Document.new(response)
            task_id = xml_data.elements["response/task"].attributes["id"]
          end

asked 04 Nov '13, 17:03

Rodrigo%20Rossiter's gravatar image

Rodrigo Ross...
1112

edited 05 Nov '13, 14:47

Anastasia%20Galimova's gravatar image

Anastasia Ga... ♦♦
790112

Could the issue be reproduced with our code sample http://ocrsdk.com/documentation/code-samples/ ?

(05 Nov '13, 14:49) Anastasia Ga... ♦♦
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×158
×58

Asked: 04 Nov '13, 17:03

Seen: 3,216 times

Last updated: 05 Nov '13, 14:49

© 2016 ABBYY. All rights Reserved. www.ABBYY.com | Privacy Policy | Legal