Error: Temporary failure in name resolution

  • 3.3K Views
  • Last Post 05 November 2013
Rodrigo Rossiter posted this 04 November 2013

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

Anastasia Galimova posted this 05 November 2013

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

Close