コミュニティ

Error: Temporary failure in name resolution

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

この記事は役に立ちましたか?

0人中0人がこの記事が役に立ったと言っています

コメント

1件のコメント

サインインしてコメントを残してください。