Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9003833
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:45:41+00:00 2026-06-16T00:45:41+00:00

Restkit 0.20 Does anyone know why am I getting this output on every call?

  • 0

Restkit 0.20

Does anyone know why am I getting this output on every call? Any suggestions on tracking it down? I can see the json payload in the debug output.

error=Error Domain=AFNetworkingErrorDomain Code=-1016 "Expected content type (null), got application/json" UserInfo=0x9187fe0 {NSLocalizedRecoverySuggestion={

The call I am making is

[manager getObjectsAtPath:@"/customers" parameters:nil success:^(RKObjectRequestOperation *operation, RKMappingResult *mappingResult) {
        NSArray* statuses = [mappingResult array];
        NSLog(@"Loaded customers: %@", statuses);
    } failure:^(RKObjectRequestOperation *operation, NSError *error) {
        UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Error"
                                                        message:[error localizedDescription]
                                                       delegate:nil
                                              cancelButtonTitle:@"OK"
                                              otherButtonTitles:nil];
        [alert show];
        NSLog(@"Customer Error: %@", error);
    }];

and my mapping code is

@interface DataCustomers : NSObject

@property (nonatomic, copy) NSString* customerid;
@property (nonatomic, copy) NSString* firstname;
@property (nonatomic, copy) NSString* lastname;
@property (nonatomic, copy) NSString* email;

@end



RKObjectMapping *map = [RKObjectMapping mappingForClass:[DataCustomers class]];
    [map addAttributeMappingsFromDictionary:@{
     @"id" : @"customerid",
     @"firstname" : @"firstname",
     @"lastname" : @"lastname",
     @"email" : @"email"}];

[manager addResponseDescriptor: [RKResponseDescriptor responseDescriptorWithMapping:map
                                                                            pathPattern:@"/customers"
                                                                                keyPath:@"customers"
                                                                            statusCodes:RKStatusCodeIndexSetForClass(RKStatusCodeClassSuccessful)]];
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T00:45:42+00:00Added an answer on June 16, 2026 at 12:45 am

    There was some weird library conflict happening that completely confused AFNetwork.

    In addition to removing that problem, I added nil to the pathPattern.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been checking out RestKit and the GET works @client.get(/?amount=5, delegate:self) Does anyone know
From my Podfile: why does this work: pod 'RestKit', :git => 'git@github.com:EATechnologies/RestKit.git', :commit =>
Does Restkit support the Pull To refresh gesture for UITableViews? If so, where can
I asked this question in the restkit google group, but realize now that it
Can RestKit connect a relationship without storing the foreign key as an attribute, i.e.,
I use RestKit with Object-mapping. This runs asyncronus and after receiving the Data from
I have an app that uses RestKit 0.10.2 and I can build and run
I ran into this issue where my RestKit(master) based app won't run on OSX
I'm using RestKit in my iOS project, and figured non-trivial problem and can't find
I am having a go at using RestKit by following this tutorial - RestKit

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.