Hi I am getting a

Assertion failure in -[Client processingFinished:]

Which is caused by

NSParameterAssert(task.downloadURL);

in the following method.

When I do

NSLog(@"%@",downloadURL)

it gives a null value.

I have not updated the applications settings on the sample, the only thing I have added is

(void)processingFinished:(HTTPOperation*)operation
{
    if (operation.error != nil) {
        if ([self.delegate respondsToSelector:@selector(client:didFailedWithError:)]) {
            [self.delegate client:self didFailedWithError:operation.error];
        }
    } else {
        Task* task = [[Task alloc] initWithData:operation.recievedData];

        if ([self.delegate respondsToSelector:@selector(clientDidFinishProcessing:)]) {
            [self.delegate clientDidFinishProcessing:self];
        }
        NSLog(@"download URL %@",task.downloadURL);
        NSParameterAssert(task);
        NSParameterAssert(task.downloadURL);

        NSURLRequest *request = [NSURLRequest requestWithURL:task.downloadURL];

        HTTPOperation *downloadOperation = [[ProcessingOperation alloc] initWithRequest:request 
                                                                                 target:self 
                                                                         finishedAction:@selector(downloadFinished:)];

        [downloadOperation start];
    }
}

asked 25 Sep '13, 14:41

Some%20Dev's gravatar image

Some Dev
111

edited 30 Sep '13, 23:10

Anastasia%20Galimova's gravatar image

Anastasia Ga... ♦♦
790112

Could you please let us know if the issue could be reproduced with the initial sample code?

(30 Sep '13, 23:12) Anastasia Ga... ♦♦

I have the same probleme can somone help me and tell me what is the solution please

(10 Sep '15, 14:05) Fares

hi i am bloqued please i need help

(12 Sep '15, 14:02) Fares

Fares, according to our database you successfully processed some images yesterday. Please specify if the issue is still actual.

If so, please send to CloudOCRSDK@abbyy.com the following information:

1) Does the issue occur with our standard sample http://ocrsdk.com/documentation/code-samples/? In case the issue is not reproduced on the standard sample, please send your source code.

2) Send us the logs from any HTTP debugger, such as Fiddler (you can download it from www.fiddler2.com) or any of its analogue.

(15 Sep '15, 13:44) Oksana Serdyuk ♦♦
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:

×42
×1
×1

Asked: 25 Sep '13, 14:41

Seen: 5,818 times

Last updated: 15 Sep '15, 13:44

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