title: RestKit - Error Domain Code 1001
body: <p>OK, so I've reviewed almost every single one of the other questions on this site, to no avail. </p>
  
  <p>Here's my JSON that comes back from a REST service: </p>
  
  <pre><code>{
   "errors" :     {};
   "result" :     {
      "messagebody" : "Hello!";
      "timestamp" : "2014-08-21T04:12:28.4689099+00:00";
   };
   "success" :    {};
  }
  </code></pre>
  
  <p>I am trying to pull out the result object via RestKit v0.20.3</p>
  
  <p>Here's a block of my code where it gets configured/executed:</p>
  
  <pre><code>- (void) configureRestKit
  {
  
  NSURL *cminstance = [NSURL URLWithString:@"http://&lt;domain&gt;"];
  AFHTTPClient *cmclient = [[AFHTTPClient alloc] initWithBaseURL:cminstance];
  
  RKObjectManager *objmgr = [[RKObjectManager alloc] initWithHTTPClient:cmclient];
  
  RKObjectMapping *messageMap = [RKObjectMapping mappingForClass:[Message class]];
  [messageMap addAttributeMappingsFromDictionary:@{ @"messagebody" : @"messagebody", @"timestamp": @"timestamp"}];
  messageMap.forceCollectionMapping = YES;
  RKResponseDescriptor *descriptor =
  [RKResponseDescriptor
   responseDescriptorWithMapping:messageMap
   method:RKRequestMethodGET
   pathPattern:@"/v1/app/e51cb2dd24af47a49232b942210e758d/text?f=test"
   keyPath:@"result"
   statusCodes:RKStatusCodeIndexSetForClass(RKStatusCodeClassSuccessful)];
  [objmgr addResponseDescriptor:descriptor];
  }
  
  - (IBAction)helloButtonClicked:(id)sender {
  
  [[RKObjectManager sharedManager].HTTPClient setDefaultHeader:@"X-App-ApiKey" value:@"2c130c75dc9f4c2c8ef7c8753e8b7c56"];
  NSLog(@"ResponseDescriptors %@", [[RKObjectManager sharedManager] responseDescriptors]);
  [[RKObjectManager sharedManager] getObjectsAtPath:@"/v1/app/e51cb2dd24af47a49232b942210e758d/text?f=test" parameters:nil success:^(RKObjectRequestOperation *operation, RKMappingResult *mappingResult) {
  
      _Response.text = [mappingResult.dictionary objectForKey:@"messagebody"];
  
  } failure:^(RKObjectRequestOperation *operation, NSError *error)
   {
       _Response.text = @"Something went wrong.";
   }];
  }
  </code></pre>
  
  <p>Here's the error from the trace: </p>
  
  <blockquote>
    <p>2014-08-21 00:12:30.653 The-App[13924:3707] E restkit.network:RKObjectRequestOperation.m:208 GET 'http:///v1/app/e51cb2dd24af47a49232b942210e758d/text?f=test' (200 OK / 0 objects) [request=2.7297s mapping=0.0000s total=2.7365s]:
    error=Error Domain=org.restkit.RestKit.ErrorDomain Code=1001 "No response descriptors match the response loaded." UserInfo=0xb164380 {NSErrorFailingURLStringKey=http:///v1/app/e51cb2dd24af47a49232b942210e758d/text?f=test, NSLocalizedFailureReason=A 200 response was loaded from the URL 'http:///v1/app/e51cb2dd24af47a49232b942210e758d/text?f=test', which failed to match all (0) response descriptors:, NSLocalizedDescription=No response descriptors match the response loaded., keyPath=null, NSErrorFailingURLKey=http:///v1/app/e51cb2dd24af47a49232b942210e758d/text?f=test, NSUnderlyingError=0xb1641c0 "No mappable object representations were found at the key paths searched."}
    response.body={"success":{},"errors":{},"result":{"messagebody":"Hello!","timestamp":"2014-08-21T04:12:28.4689099+00:00"}}</p>
  </blockquote>
  
  <p>Any ideas here on how to troubleshoot? I've been banging my head on this one for a few hours and google has not been my friend. </p>
  
  <p><strong>EDIT:</strong> The Response Descriptors</p>
  
  <pre><code>2014-08-22 10:41:21.580 Apprenda-CloudMine-App[10987:60b] ResponseDescriptors (
  "&lt;RKResponseDescriptor: 0x17826c180 method=(GET) pathPattern=/v1/app/e51cb2dd24af47a49232b942210e758d/text?f=test keyPath=result statusCodes=200-299 : &lt;RKObjectMapping:0x17826bfc0 objectClass=Message propertyMappings=(\n    \"&lt;RKAttributeMapping: 0x1780499f0 timestamp =&gt; timestamp&gt;\",\n    \"&lt;RKAttributeMapping: 0x17804cf30 messagebody =&gt; messagebody&gt;\"\n)&gt;&gt;"
  </code></pre>
  
  <p>)</p>
  
  <p>Thanks!
  -Chris</p>